How can I prevent an issue from being created if the same issue type exists?

Hello,

Am using automation to create an issue on transition.

Am looking for a way to prevent the issue from being created if an issue of the same type exists within the epic that is being transitioned.

For example, I have the following workflow: 

1. Open

2. Requirements

3. Development

Initially when I move from Open to Requirements, I want to automatically create a requirements issue type.

On the other hand if I move back from Development to Requirements, I want to open the existing requirements issue, instead of creating a new requirements issue.

Thank you very much in advance.

1 answer

1 accepted

0 vote
Scott Harwood Community Champion Jan 16, 2018

Hi Etai,

You should be able to do this with entity properties, so when you transition the epic, you can mark with a property saying that the issue has been created, preceding that you check the non-existence of that property. Here is an example:

Screen Shot 2018-01-17 at 3.59.07 pm.png

Let me know if that will work for you.

Cheers,

Scott.

Thank you for your help.

I went about this in a different way as I got stuck if a user manually deleted the issue (and i did not want to add another automation to clear the hasissueCreated property.

My solution was to create two automations.

1. Create issue if the issue does not exist (using the related issue condition).

2. Reopen issue if the issue does exist (using the related issue condition).

image.pngimage.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

201 views 1 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you