I have review loops on different status groups which consists of multiple transitions to a single status
example. I need a label afixed when the transition l/f rejected is selected and then the label removed and a new one added when the l/f approved is selected
How can i create logic around the specific transitions
Hey guys - this is where I first went but there is no `labels` selection on the field update on post functions, at least not on cloud. Do you all see that?
Ah, I forgot that you where on Cloud. In that case your only option is to use Scriptrunner to set the label in a post function. Have a look at this thread for the script needed, https://community.atlassian.com/t5/Jira-questions/Is-there-a-way-to-automatically-add-a-label-to-an-issue-when-it/qaq-p/1054492. The thread mention that you can use automation, but that option only allows you to set the label based on the status, not the actual transition, since that happens before the automation tiggers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just thought of a possible workaround. You could use just a generic transition and then on the transition screen have to user select which transition it is. It may not be ideal, but you could then use post function to clear that field when transitioning out form the destination status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Mikael Sandberg I will play with these options. Its a bummer that we cant execute transitions via automations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Automation doesn't use the transition, it is just using the status that you transition to. So in you case you want to look at using post functions on the transition to set/remove your labels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@BrentBot_ Like, @Mikael Sandberg said, you will need to add this functionality to the workflow transition.
This is the Post-Function for Company Managed Worflows:
This is the Post-Function for Team Managed Workflows:
-pjd
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.