Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How can I check for when a specific label has been added or removed?

I want to trigger an action when label 'mylabel' has been added or removed.

It should not trigger when a label containing 'mylabel' has been added or removed, for instance 'mylabel1' or '111mylabel-2'.

How can it be done?

1 answer

1 accepted

0 votes
Answer accepted

Hello Simon,

JIRA Post functions only triggers upon issue transitions. That been said, you will need a plugin to trigger any action when an issue is edited - More specifically when a new label is created.

You can use Automation for JIRA App to configure a rule that will trigger upon a new label creation, adding the condition that this label must not contain "mylabel":

Screen Shot 2019-07-19 at 17.22.10.png

Let me know if this information helps.

Esther Strom Community Leader Jul 27, 2020

@Petter Gonçalves I know this is a year old, but I have a similar requirement. 

From what I can tell, your solution doesn't tell us that the ticket previously had a label of "mylabel" and now it doesn't; all it tells us is that at the time the rule is triggered, there is no label of "mylabel" - the ticket may never have had that label. Is that correct?

My requirement is to trigger a rule when a specific label is removed from a ticket, as we have Plans (advanced roadmaps) set up pulling from a label and if someone accidentally (or not) removes the label then the issue disappears from the plan. I've looked at smart values, and see that there is a fieldChange.fromString and fieldChange.toString, but I'm not sure I can use those in this kind of rule. Can you help me out?

Like Masudur Rahman likes this

I had the same requirement and did the following tedious way. This might be helpful if you still need to fulfil your requirements. 

labels-removed-event-catch.png

 

Thanks

Masud

Thanks for sharing this. How to use .fromString and .toString on arrays like labels. 

Suggest an answer

Log in or Sign up to answer
TAGS

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