I have an automation like the below where I only want it to trigger once when first assigned.
Why is it duplicating when I reassign?
Hi Dylan - Welcome to the Atlassian Community!
Jira doesn't know when an issue is assigned if it is the first time or 20th time. So you need something else there to check it.
Maybe try creating a new custom number field and set the default to 0.
Then add another Condition to check if the value of the custom field is 0. If so, they it would fire.
But you also need add an Edit Issue action at the end to set the value of the custom field = 1.
So the first time it is assigned, then the custom field is 0. The trigger passes the condition, adds the comment. And at the end of that, it updates the custom field to 1.
The next time the issue is assigned, it checks the custom field, which is now 1. So it fails the condition check and does not fire.
I'll try the workaround but curious why there is a feature to prevent duplicates when it doesn't seem to be able to prevent them
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dylan Alperin -- Welcome to the Atlassian Community!
The option to prevent duplicates detects if the comment text (body) is exactly the same. Does that match your use case?
If not, you will need another way to detect duplicates, such as:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is exactly the same, its just the one automation to add the comment so strange it doesn't detect it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; you have definitely found a bug. I recommend working with your site admin to submit the defect here: https://support.atlassian.com/contact/#/ I was able to reproduce this symptom as follows:
Steps to reproduce:
Expected results:
Step 5 adds a comment and Steps 6 and 9 do not add duplicate comments
Actual results:
Step 5 adds a comment and Step 6 does not. However toggling the rule off/on leads to Step 9 adding a duplicate comment.
Work-around:
Add other fields/values to detect that the comment was added earlier and check for the condition created to prevent duplicate comments. Apparently making a change to the rule changes the thing preventing duplication.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a bug ticket somewhere for this? I still have this issue
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.
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.