How to Use Issue Pickers in Automation Rules

Integrate VIP.LEAN Issue Pickers with Jira Automation Rules. Learn how to set, augment, and transfer Issue Picker values, and utilize attributes from selected issues.

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 Associate Specific Issue Keys

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:

{ "fields": { "customfield_XYZ": [{#customfield_ABC}"{.}"{^end},{/}{/}] } }

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}

3.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_xyz}})
  • Link issues using: {lookupIssues}

3.2 Incorporating Newly Linked Issues

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

{ "fields": { "customfield_XYZ": [{#customfield_XYZ}"{.}",{/}"{linkedIssue.key}"] } }

3.3 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:
{ "fields": { "customfield_XYZ": [{#customfield_XYZ}"{.}",{/}{#lookupIssues}"{key}"{^end}, {/}{/}] } }
ℹ️ 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.
Jump to: