I have a custom field created which is a drop-down :
Testing - Test fail
Test Pass approved
Test Pass approve to UAT
When the field select is changed the transition status should change e,g from in progress to done.
I would suggest doing this the other way around.
There are no true events available for issue field values being updated hence, you will need to listen to the standard issue updated event. This is triggered for wuite a lot of events hence it can get resource intensive.
Instead if you transition the issue and it automatically sets a field, its a per issue event.
Hope this helps.
I need to fast track a transition based on custom filed value selected/changed, my problem is calling the custom field in scriptrunner console.
If users selected/edit an option in the custom field , I want the issue to transition directly to another status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this case, I would rather do the following instead.
Note from the above that you would need to order your post functions accordingly so that the fast-track transition comes last.
As mentioned, I am unaware of an event that checks for the change of a field other than the standard issue updated event, which if you use this would trigger quite frequently.
Your alternative if you want to use this would be as follows:
Do note that even though the above reduces the amount of load since your script would exit early, JIRA would still have to perform this check every time the issue updated event is triggered..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That procedure did not work for my project, i added a plugin called automation and it does work accordingly.
Regards
Bongani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.