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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I flag an issue was a bug is related to it with automation?

Every time a bug is created and that bug relates to an issue on the active sprint, then that issue is flagged and only can transition into done once the bug is fixed (status = Done).

Is there a way to automate the flagging of an issue with a related bug to it?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Luiz Alves Filho 

Maybe...  How do you know a defect (bug) is related to another issue within Jira?

If it is a sub-task type or is linked to the "parent" issue then you should be able to use an automation rule to detect the condition and then flag it.  You would also configure your workflow to check for the blocking item before allowing a parent to transition to done.

Best regards,


We link bugs (issueType = Bug) with the related user stories (issueType = Story).

But I can't find a way to do it on automation yet!

Hi @Luiz Alves Filho 

If you are manually linking when you create the Bug, you can then use automation to set the flag (edit issue, setting the Flagged field to True).

If you are looking for a way to automatically link the Bug to the Story, using automation, you would need some way to uniquely identify the Story for the link to the Bug.  Otherwise, there would be no way for automation to do this.



That's exactly what I want to do. Flagged automatically a story which has a bug related to it. But I'm trying to automate it but without success.

Do you have any ideas on how to do it?

Thanks for clarifying.  Okay, I will assume when you create a bug, that you link it to a story before saving.  If so, this will do it:

  • Trigger: Issue Created
  • Condition: Issue Type equals Bug
  • Branch: For linked issues to the triggering issue 
    • Condition: Issue Type equals Story
    • Edit issue: set Flagged to TRUE

If you are using a specific link type (such as blocked), you can add that to the branch check.

If you create a bug and later add the link to the story, you could copy this to another rule, with a trigger of Issue Linked.

Like Luiz Alves Filho likes this


I'll try it and let you know if it worked.



This is how I created the automation. The audit log shows that it worked. But the Flag was not added to the related Story.


jira automation.png


Maybe the problem is on the last part of the automation. I'm not sure which one to select.

What do you think?

jira automation 2.pngjira automation 3.png

You almost have it done... you want to set Flagged to TRUE in the Edit Issue.

I can't find that option :(

Hmmm...  I just recreated that rule, and I found it.  Try this.  Delete the edit, save your rule, publish, disable it (just in case...) and then try to re-add the Edit Issue.

Flagged as true.PNG


Do you think I need to do some editing on advance filed section? Because I can't find the "true" option. The only options are the following ones:


Please try to just type TRUE, and tab off the field.  That worked for me.

Tried, but nothing happens :(

Argh!  That is unfortunate... At some time in the past, I typed in TRUE and it has just worked since then, becoming available in the drop-down list.  

Updated: the JSON advanced edit does not appear to work for the Flagged field.  I'm still experimenting with it to understand why...

Something's up and it may be time to submit a support ticket:

Hey, @Luiz Alves Filho 

One more thing to try: select Impediment from the dropdown for edit of Flagged.

I found an older post where TRUE worked for some people and Impediment worked for others.  Odd that both work for me.

Like Luiz Alves Filho likes this

It worked with the impediment!

Thanks a lot @Bill Sheboy


Next Automation will be to remove the flag when the linked bug transitions to "Done". Let's see if I can handle it! haha

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,045 views 8 28
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you