Forums

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

count bugs number

oda mao November 25, 2021

hi team,

in my JIRA, when click : record issue", there will be 1 bugs created and and link to epic automatcally. i want to count the number of bugs linked to epic and fill in the number in field :activity number. i set ‘activity number" with {{"+1"}}, but it not works. can you help on it?1111.jpg2222.jpg

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
November 26, 2021

Hi @oda mao ,

try using smart values (https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/)

In your case, the value should be:

{{#increment}}{{issue.ActivityNumber.asNumber}}{{/}} 
oda mao November 26, 2021

hi ,

checked with the smart values, the field: activity number " remains blank after linked some bugs under epic, could you help check?

Fabio Racobaldo _Herzum_
Community Champion
November 26, 2021

@oda mao is the initial value 0 ?

Regards,

Fabio

oda mao November 26, 2021

when there is no bugs linked under epic, the value remains blank, need i change the default value to 0?

Fabio Racobaldo _Herzum_
Community Champion
November 26, 2021

yes, you should have a default 0 otherwise my code is not able to convert the initial value and increment it.

Hope this helps,

Fabio

oda mao November 29, 2021

hi team,

after double check, field "activity number" could automatically count the number of "causes" rather “caused by"(see screenshot 1), but in my JIRA, bugs were created with "caused by", and "{{destinationIssue}}" was mentioned in "issue linked" explain, , could you help check?

1.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events