Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Condition

Sreenatha Reddy J
Contributor
July 15, 2022

I am creating automation in Jira cloud and I need a condition that should check/work based on the Existing issues field values.

Ex: I have field called priority number and it has some values, so now I am creating the automation like when you creating new issues with the same field values used in previous issues, then it should comment on the issue as "The Priority number which you used is already used in previous issue. So please use different priority number"

So for this I need the condition, please help me with the condition.

2 answers

1 accepted

1 vote
Answer accepted
Gideon Nolte _Eficode_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2022

Hi @Sreenatha Reddy J ,

 

the use-case you are describing can be realized by chaining a handful of components together. First up I would suggest you to find out the ID of your customfield (Priority Number). For the example in this post, I will assume the ID to be 10101. 

In your automation use the "Lookup Issues"-Action to find issues that might have the same priority number that is used in the given issue. Do that by using JQL and Smart Values, like this:

cf[10101] = {{issue.customfield_10101}} AND ...

After this, you have access to the "lookupIssues"-Smart Value which you can use in an "Advanced Compare"-Condition, like this:

{{lookupIssues.size}} is greater than 0

Now you can add a "Comment on Issue"-Action below the condition and deselect the duplicate-protection.

 

All together, it should look something like this:Webaufnahme_15-7-2022_132321_demo-jodocus.atlassian.net.jpeg

Note: Your trigger should be configured for your field and your customfield IDs should be aligned with that.

 

Hope this helps. Feel free to ask any questions or share your audit log, if this should not work. 

0 votes
John Funk
Community Champion
March 17, 2023

Hi @Sreenatha Reddy J  - I am marking this answer as accepted. Let us know if you still have questions. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events