The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Scriptrunner Transition Issue to new Status when custom Field Value is selected

Hector Hood
Contributor
April 13, 2022

I need help creating a Scriptrunner Script that does the following.

customFieldA (Single Select Dropdown)

User Selects "Yes"

Issue Auto-transitions to Closed.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Vikrant Yadav
Community Champion
April 13, 2022

Hi @Hector Hood You can do this easily by applying a post function >> Fast-track Transition an Issue. 

For eg :- This is a workflow ToDo >> In Testing >> In Progress >> Done and you want to move issue from In Testing to Done based on select list field. 

You need to applying a transtion screen and Fast-track Transition an Issue post function on In Testing transtion. One transtion screen add this field :- customFieldA (Single Select Dropdown) , it's your choice you want to make it mandatory or optional. Then apply Fast-track Transition an Issue post function :-

In Condition put :- cfValues['My Select List']?.value == 'My value'

Action :- Select Done(id) status. 

Thanks

V.Y

Hector Hood
Contributor
April 13, 2022

This still seems to be a manual process. What I am looking for is when I set the Value to Yes the issue Auto-Transitions to Closed. User should not be selecting the closed Transition. The issue needs to auto transition on its own. Out Closed is set with the Global Transition of All. One last detail the issue that needs to transition is a sub-task.

0 votes
Pramodh M
Community Champion
April 13, 2022

Hi @Hector Hood 

Please find the below code example for transitioning the issue

https://library.adaptavist.com/entity/transition-an-issue-using-issue-input-parameters

 

Thanks,

Pramodh

TAGS
AUG Leaders

Atlassian Community Events