Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,651
Community Members
 
Community Events
168
Community Groups

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

Gaurav Community Leader Sep 02, 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

2 votes
Answer accepted
Alex Koxaras Community Leader Sep 02, 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 Community Leader Sep 06, 2022

Hello @Alex Koxaras 

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 Community Leader Sep 06, 2022

Thanks @Alex Koxaras 

Like Alex Koxaras likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events