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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events