Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Append a label to issue in post-function

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

3 answers

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:

Bildschirmfoto 2020-07-20 um 15.31.17.png

Hope that helps,
  Oliver 

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!

0 votes
John Funk Community Leader Aug 13, 2020

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:

  • Global: In the Free version, you get 100 executions per product, per month
  • Project: In all versions, you get unlimited executions per month

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 David,

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.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

332 views 9 7
Read article

Community Events

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

Events near you