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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,443
Community Members
 
Community Events
184
Community Groups

Is there a way to trigger a slack notifcation only when a label is initially added?

The label that I would like to trigger the slack notification, when added is 

Labels in (Hotfix) 

The only triggering event that causes this to update the slack channel is "Issue Updated"
However, as long as that label stays on the ticket, the slack channel will continue to be updated with any change to the ticket.

I thought the following query would limit this:

Labels in (Hotfix) AND created <= "-10m"

Limiting the updates that would trigger a notification to occur only with in the first 10 minutes of the creation.  This did not work.

Any thoughts?  I was wondering if I might be able to create a "Generic Event", but I am not 100% how that works.

Thank you for your time.

1 answer

1 vote
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 13, 2020

Hey, welcome to the Community!

How does an Automation rule sound? The following automation rule will trigger when the "hotfix" label is added to an issue (but not when it's removed, and not when other labels are added!)

image.png

The key lies in the two Advanced compare conditions:

  1. Check if:
    1. First value
      {{#changelog.labels.toString}}{{.}}{{/}}
    2. contains
    3. hotfix
  2. Check if:
    1. First value
      {{#changelog.labels.fromString}}{{.}}{{/}}
    2. does not contain
    3. hotfix

Once the conditions are set up, as an action for the rule, you can send a message to Slack.

 

Automation is native to Jira Cloud, but on Server you'll need to install the Automation for Jira app. Let me know if I can answer any follow-up questions!

Cheers,
Daniel | Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events