Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,233
Community Members
 
Community Events
176
Community Groups

When using Jira Automation, can you prevent duplicate subtasks from being created?

Within Jira Automation, if you are to have an action that creates a comment, you can select a checkbox that disables duplicate comments being created. I would love to know how I can prevent duplicate subtasks from being created. Currently there does not appear to be a checkbox for the subtasks. I was trying to use an if/else check, but couldn't quite get the syntax down. I would love some help/ideas on how to solve this one.

3 answers

1 accepted

Looks like the move was using a Related issues condition where the related issue was 'sub-tasks' and the condition was 'are not present'. Then an action is added to create sub-tasks. Now the tasks only generate the first time!

1 vote

It would be good to know what trigger and conditions you are using, as that could influence the solution. But at a high level, I agree with @Pramodh M use JQL to restrict or check to see if such sub-tasks already exist. 

My action trigger is when the task is moved from panel A to B, but if you keep moving it back and forth from A and B, the sub tasks continue to regenerate. So my goal is to create these subtasks on the first attempt and that is it.

1 vote
Pramodh M Community Leader Jan 19, 2022

Hi @Bruce Mitchener 

Use JQL to restrict the issues from being created using if condition and refetch issue data automation to check whether the issue is already created while automation is running!!

Let me know what exactly you trying out

Thanks,.

Pramodh

I will certainly give JQL a go! My action trigger is when the task is moved from panel A to B, but if you keep moving it back and forth from A and B, the sub tasks continue to regenerate. So my goal is to create these subtasks on the first attempt and that is it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events