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

AuTOMATION RULE TO BE SET FOR Scripts blocked due to Bug

SUVARNA Dixit March 14, 2024

Bugs having Linked issues as (Blocks)

How many blocked issues are there in that Bug , that count need to be updated runtime in one field 

1 answer

0 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2024

Hi @SUVARNA Dixit and welcome to the community!

Let me play back my understanding of the question.  For each bug, you're looking for a way to capture the number of issues it blocks into a custom field.  If I'm correct, you would do something like this:

  • TRIGGER: Issue Linked (Blocks link type)
  • CONDITION (Issue Fields): Issue Type = Bug
  • ACTION: Lookup Issues
    • issueIsBlockedBy = {{issue}}
  • ACTION: Edit Issue (your custom field)
    • {{lookupIssues.size}}

 

SUVARNA Dixit March 14, 2024

CAN WE Connect now? will try this as well

 

 

SUVARNA Dixit March 14, 2024

HOW MANY TasKS ARE BLOCKED DUE TO THE BUG that count i need

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 14, 2024

Yes that rule should work for you.  Here's a screenshot from my test environment.  I'm using the Description field, so you would just need to change that to your specific field:

2024-03-14_06-13-21.png

And here's my test bug

2024-03-14_06-14-19.png

Like Kalyan Sattaluri likes this
SUVARNA Dixit March 14, 2024

:) works now have to change the events 

thank you

suvarna dixit March 20, 2024

I would like to schedule it because not all the time issue linking will processed 

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2024

Processing on a schedule is possible, but will create performance risks because there's no way to query by say, bugs that have had links in the last n hours.  As a result, you would have to process against every bug whether they've had new links or not.  Automation has throttling limitations for how long a single rule execution can take and how many cumulative seconds they can run in a given day that you'd need to take into consideration.

If you're ok with that, you would replace the trigger on your rule with something like this:

  • TRIGGER: Scheduled
    • type = Bug and issueLinkType IN (Blocks) AND resolved IS EMPTY

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events