workflow transition move automatically to Step

Christian Boni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2016

Hi All

I need some with Behaviour scripted code

We have the following workflow steps

1) Medical Center
2) Patient Admitted
3) Patient Discharge


Depending on a Custom field value (select list)

Scenario - 1
If Select list equal "Critical" then perform  workflow transition move automatically to Step ->Patient Admitted

Scenario - 2
Select List equal "satisfactory" then perform  workflow transition move automatically to Step ->Patient Discharge

 

Can some one help me with Behaviour scripted code ??

 

1 answer

2 votes
Georges Moubarak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2016

Hi @Christian Boni,

You could achieve this by using the escalation service of script runner of script runner.

You need to create 2 escalation plans, add the following JQL queries one for each service:

Project = 'X' and 'Select List' = Critical

Project = 'X' and 'Select List' = satisfactory

Then for each service you need to choose the appropriate action (transition)

And finally you need to set the interval of which this service will run.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events