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.
Thanks, some smart values gave error before so I don't think it.
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.