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.
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:
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.
Hi @Sreenatha Reddy J - I am marking this answer as accepted. Let us know if you still have questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.