Forums

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

Need to count the number of Total Linked Issues and Open Linked Issues using Automation

Gaurav
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.
September 2, 2022

Hello All,

We have a use case where we need to count the number of Total Linked Issues and Open Linked Issues for a given issue type.

There are 2 Custom Issue Types 'Alpha' and 'Beta'. Each 'Alpha' can be linked to multiple 'Beta' issues, but each 'Beta' is only linked to a single 'Alpha' issue.

We need to display the count of Beta issues on every Alpha issue, both as Total and only Open ones.

I have tried using Automation but have not been successful. Kindly help me with this.

Please note: Additional plugins are a constraint and we need to implement using Automation only.

1 answer

1 accepted

3 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
September 2, 2022

Hi @Gaurav 

Try the following smart values and you will get the values you seek:

  • Total number of issues: {{issue.issuelinks.size}} 
  • Total number of resolved issues:  {{lookupIssues.size}}
    • Prior of placing the above value, create a lookupissue with the following jql issue in linkedIssues({{issue.key}}) and resolution = unresolved

Hope that helps!

Gaurav
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.
September 6, 2022

Hello @Alex Koxaras -Relational- 

Thanks for the response. This really helps.

I have one follow-up question, is it possible to separate the inward and outward links? For some cases we need to count only for the Inward Links rather than all linked issues.

Like • Gaurav likes this
Gaurav
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.
September 6, 2022
Like • Alex Koxaras -Relational- likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events