I need help creating a Scriptrunner Script that does the following.
customFieldA (Single Select Dropdown)
User Selects "Yes"
Issue Auto-transitions to Closed.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Who doesn’t love a good template? We sure do! Check out our top template picks for Marketing teams who want to streamline their processes, enhance collaboration, and take their marketing to new heights.
Read more 📚Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.