Automation smartvalue with the status of a linked issue

Christof Hurst
Contributor
March 6, 2025

Hi, 

following situation:

  • In an automation in issue A i need the statusname of a linked issue
  • There are potentially more link issues
  • Correct issue is linked via type "Communication" and linktype is "is communication for"

Tasks: 

  • Determine the correct linked issue
  • Get the status of these

Problems:

  • I struggle with the syntax
  • This is my attempt which gets no result:
{{#issue.issuelinks.type}}
  {{#if(equals(name, "Communication"))}}
{{issue.issueLinks.inwardIssue.status.name}}
{{/}}
{{/}}
  • A smaller try gave me the names of the two linktypes of the test issues
{{#issue.issuelinks.type}} 
{{name}}
{{/}}

So can someone find my mistake?

BR Christof

3 answers

1 accepted

0 votes
Answer accepted
Christof Hurst
Contributor
March 6, 2025

Maybe I have to go another way and lookup for the issue via JQL:

issue IN linkedIssues("{{issue.key}}") AND issueLinkType = "has communication"

 

0 votes
Vishal Biyani
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.
March 6, 2025

@Christof Hurst 

Can you try using below syntax to get linked issue key and its status name

{{#issue.issuelinks}} {{outwardIssue.key}} {{outwardIssue.status.name}} {{/}}

Christof Hurst
Contributor
March 6, 2025

This gets nothing. With inward... it gets the other linked issue which is wrong.

0 votes
Pasam Venkateshwarrao
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.
March 6, 2025

Hi @Christof Hurst 

    We can get the value of issue key based on the type of 'issue links'. 

   When we link "Issue B" from "Issue A" using 'blocks' (Issue A > More > Link > Issue B),

  • "Issue A" blocks "Issue B"
    • Inward Issue - There will not be any inward issue. As link originated from 'Issue A'.
    • Outward Issue - Outward issue is 'Issue B'. As link is created from 'Issue A'.
  • "Issue B" is blocked by "Issue A"
    • Inward Issue - Inward issue is 'Issue A'. As link is created from 'Issue A'.
    • Outward Issue - There will not be any Outward issue. As link is from 'Issue A'.
  • We can fetch the values of linked issue keys (both "Inward" and "Outward" using below smart values.

    Inward Issue is {{issue.issuelinks.inwardIssue}}
    
    Outward Issue is {{issue.issuelinks.outwardIssue}}


{{issue.issuelinks.inwardIssue.key.status}}

Christof Hurst
Contributor
March 6, 2025

This is true but not related to the problem.

Issue A have one or more linked issues. Only ONE of these is relevant (Communication and inward linktype "is communication for") and status status of only this one needs to be determined.

Suggest an answer

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

Atlassian Community Events