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

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 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
Community showcase
Published in Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

232 views 0 8
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