How to use Issue Pickers in Automations Rules

1. Introduction

Required Jira Role: JIRA SOFTWARE ADMINISTRATOR

Dive into the enhanced functionalities of Jira Cloud's Advanced Issue Selector. This guide walks you through the various ways you can integrate and automate tasks using the Advanced Issue Selector.

2. Integrating Issue Keys with Advanced Issue Selector

Required Jira Role: JIRA SOFTWARE ADMINISTRATOR

2.1 To associate specific issue keys with the Advanced Issue Selector, follow the steps below:

  • For a singular issue, use the following format:

    { "fields": { "customfield_XYZ": ["ABC-1"] } }

     

  • For multiple issues simultaneously:

    { "fields": { "customfield_XYZ": ["ABC-1", "ABC-2"] } }

     

2.2 Augmenting Selected Issues

If you wish to include an additional issue without replacing the current selections in the Advanced Issue Selector, use:

{ "fields": { "customfield_XYZ": [{#customfield_XYZ}"{.}",{/}"ABC-100"] } }

 

2.3 Transferring Selections Between Fields:

To replicate selected issues from one field to another, employ the following structure:

 

3. Utilizing Attributes from Selected Issues:

Required Jira Role: JIRA SOFTWARE ADMINISTRATOR

For single-issue selections in the Advanced Issue Selector, you can adapt the issue’s attributes. For instance, to modify the assignee based on the current selection:

  • Fetch issues using: key in ({issue.customfield_XYZ})

  • Modify fields with: {lookupIssues.first.assignee}

  1. Establishing Issue Links During Creation:

The Advanced Issue Selector doesn't inherently support issue linking during creation. However, with automation, you can link the newly created issue with selected ones using the 'blocked by' link type:

  • Fetch issues with: key in ({issue.customfield_ABC})

  • Link issues using: {lookupIssues}

  1. Incorporating Newly Linked Issues to Advanced Issue Selector:

To automatically add new issue links to the Advanced Issue Selector fields, use the following:

 

  1. Integrating Pre-existing Jira-native Linked Issues:

For issues already linked in Jira, you can automate their addition to the Advanced Issue Selector:

  • Fetch linked issues with: issue IN linkedIssues({issue.key}, "blocked by")

  • Modify fields using:

 

Notes:

  • Ensure the correct custom field IDs are used.

  • Always verify that the issues you're working with fall within the automation rule's purview.

  • For further insights, refer to Atlassian's official 'Lookup issues' guide.