Would like to add a transition that when the issue uses it a label is appended in the labels field. ie Issue is moved back to in progress and the label 'rework' is added. Never tried Script-runner however if that is the only way to do this happy to give it a try. Many thanks
Hi @David Thomas ,
Welcome to the community!
Since you are on Jira Cloud, you have a few different options, ScriptRunner being just one of them. First you can try the Automation feature that's included for free with most Jira Cloud instances (go to Project Settings -> Automation). If you are ok with the automations not being part of the workflow configuration but living in that extra menu, this is a good approach.
Or you can choose a workflow app for Jira Cloud. In my biased opinion Cloud Workflows is a great and very flexible option, as it supports adding extra labels to the existing ones with easy post functions. Setting up a post function to add an additional label called 'foobar' would look like this:
Hope that helps,
Full disclosure: I work for Jodocus, the Marketplace Partner who created Cloud Workflows. Let me know if you need any help getting started, I'll be happy to help!
Thank you for your response.
I can confirm that to achieve your requirement of setting a label of rework when an issue is transitioned back to the In Progress status that you can use the Modify Issue post function provided by ScriptRunner for Jira Cloud.
You would do this by adding this post function onto the transition back to In Progress and would then set some code in the Additional Code box to set the label.
I can confirm that we have code examples named Set Labels and Update Label which you can click on below the code box to populate the box with the code that you need to set a label or to update existing labels.
I hope this helps.
Hi David - Welcome to the Atlassian Community!
You might also consider Automation For Jira - it's a free tool as a part of Jira Cloud now. A little more information:
There are two types of automation:
Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation
You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).
For more on using Automation For Jira see these help pages.
Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events