The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How i can update bug count field for all linked bugs with each story?

Asifa Azad (CW)
July 23, 2024

 

How i can update bug count field for all linked bugs with each story?

I have added custom field  bug count now i want to update bug count filed for all previously linked bugs with stories

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Asifa Azad (CW)
July 23, 2024

Thanks @Nicolas Grossi for response. i have already created this rule which increase the count by one when ever new bug is linked. but now i want to update the count of precious linkd issues. because automation return newly linked bugs count.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 23, 2024

Hi @Asifa Azad (CW) -- Welcome to the Atlassian Community!

Rather than increment a counter, I recommend recalculating the count using the Lookup Issues action instead.  That will prevent errors and help when handling the edge cases: deleted issue, issue type changes, etc.

Next to your additional question for updating existing issues...

  • Once you have a rule which recalculates the count, that could be cloned (or have the trigger temporarily changed) to use a scheduled trigger with JQL to check if the counter field is set.
  • Then let the scheduled rule run until caught up on the existing issues
  • Finally disable the cloned rule (or update back to the existing trigger)

Kind regards,
Bill

TAGS
AUG Leaders

Atlassian Community Events