Cancellation of a Problem

Ricardo Sanche3
Tera Contributor

Currently, there is an OOB UI action "cancel" in the problem form, but it only displays during "assess" I want to be able to have "cancel" shown during the "new" state as well without losing its functionality.

 Cancel form.JPGcancel ui.JPG

2 ACCEPTED SOLUTIONS

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

That is because there is a condition in the script include as below:-

 

Saurav11_0-1669659729125.png

 

You can use the below in the condition of the UI action:-

 

 

current.canWrite() && (new ProblemStateUtils().canMarkDuplicateOrCancel(current) || current.state=='101')

 

 

Saurav11_0-1669660418592.png

 

 

The above will make the button appear, then you need to do the below go to state transition from navigation:-

 

Saurav11_1-1669660162559.png

 

Open Problem management default flow:-

 

Saurav11_2-1669660192930.png

 

Open the closed option:-

 

Saurav11_3-1669660216550.png

 

Include new as well and save:-

 

Saurav11_4-1669660247869.png

 

Please mark my answer as correct based on Impact.

 

View solution in original post

Yeah you need to fill the assigned to before cancelling

View solution in original post

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

That is because there is a condition in the script include as below:-

 

Saurav11_0-1669659729125.png

 

You can use the below in the condition of the UI action:-

 

 

current.canWrite() && (new ProblemStateUtils().canMarkDuplicateOrCancel(current) || current.state=='101')

 

 

Saurav11_0-1669660418592.png

 

 

The above will make the button appear, then you need to do the below go to state transition from navigation:-

 

Saurav11_1-1669660162559.png

 

Open Problem management default flow:-

 

Saurav11_2-1669660192930.png

 

Open the closed option:-

 

Saurav11_3-1669660216550.png

 

Include new as well and save:-

 

Saurav11_4-1669660247869.png

 

Please mark my answer as correct based on Impact.

 

"Error MessageData Policy Exception: The following fields are mandatory: Assigned to" when I try to close the problemerror ui.JPG

Yeah you need to fill the assigned to before cancelling

Sara Saravanan
Tera Contributor

1) Open Cancel UI action (Table : Problem ) and modify the condition as below:

current.canWrite() && (new ProblemStateUtils().canMarkDuplicateOrCancel(current) || current.state=='101'

2) Open State model from navigator > Click on Problem Management: Default Flow > Click on "Closed" State transition at the bottom of the screen > Next page appears , please add "New" state in   Enter condition filter 

3) Click on Problem Model > General > Bottom of the screen , click on New in the Model states and add New to Closed state transition