You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
I need a condition to execute rule.
So I need a query like this:
createdDate>'-1d' AND summary ~ KEYWORD AND label = {{triggerIssueLabel}}
count less than 5. Then execute else do nothing.
However I cannot write a query like this.
Hi @İsmail Özçelik - I'm not sure of the trigger, but I was able to accomplish this with a couple actions:
From there you could use an If/Else condition with the newly created variable {{issueCount}}
Hope this helps.
Hi @Mark Segall ,
Thanks for answer. But still I cannot get the label from issue and use it inside query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I get a screenshot of your rule? It would help to have more context around the trigger and actions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you this clears things up for me. So, you'll want something like this in your JQL:
createdDate>'-1d' AND summary ~ ACIL AND labels = {{triggerIssue.labels}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry - My query had an error. I fixed it. Should be {{triggerIssue.labels}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also - Note that if there's any possibility your issues will have multiple labels, you probably want to go with "IN" instead:
labels IN ({{triggerIssue.labels}})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Following up in a new question at Nulling a clause when count is zero (atlassian.com)
A related problem I have is:
((labels in ({{triggerissue.labels}}) OR otherclause)
If there are any labels I want them to expand, e.g.
labels in (label-1) or otherclause
But if labels are empty I don't want:
labels in () or otherclause
I just want:
otherclause
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.