Smart values for "Issue Links" in Automation for Jira

   

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Smart values in Jira automation provide a list of smart values used for different purposes. As a continuation to it, this page explains the usage of smart values for different types of "Issue Link" types in Jira.

Linking issues page provides information on different ways we can link Jira issues. 

Environment

All versions of Automation for Jira Plugin

Solution

  • For all types of issue links, there is a clear difference when issues are linked between first issue and second issue. For example, clones/is cloned by, blocks/is blocked by etc.
  • 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}}
  • We can use these smart values to both get the value of the linked issue key and to set the value of the linked issue key. We can print the value of the issue key also. 
  • Below are a few examples of setting the value of fields using the smart value and printing the issue ley in comments using the smart value.





Last modified on Mar 29, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.