Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script for writing conditions in workflow

kgowthamaaa@gmail.com
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!
June 27, 2019

I have a workflow which requires a condition to be validated before transition to next status.

The condition needs to be checked is,

1)only when the ticked is assigned to assignee, the status should enable from "open" to "In progress" and following other status.

2)If ticket is not assigned to anyone, only "Cancelled" and "On Hold" status should be enabled. Could you help on writing script to satisfy this condition for workflow

workflow.PNG

 

1 answer

0 votes
Nic Brough -Adaptavist-
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.
June 27, 2019

You should just be able to put "assignee empty/not empty" in the condition header, but if you want to do it as a script, try

if ( issue.getAssignee() )  { Return false }
Return true

for the open and in-progress transitions

Suggest an answer

Log in or Sign up to answer