Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-877

Lookup issue action - Add support for more fields

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Configuration
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem

      Jira Automation lookupIssue Smart Value only support a limited number of fields types, as per the documentation:
      https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html#Jirasmartvaluesissues-lookupissues-properties

      Suggested Solution

      Expand the list of the supported fields for the LookupIssue, so that it can include:

      • text fields (single line, multi-line...)
      • select fields (single option, multiple options)
      • components
      • Time attributes like (Original Estimate, Remaining Time Estimates)
      • Date and Datetime fields
      • etc...

      Workaround (partial)

      In certain scenarios where we would like to use lookupIssues to retrieve a single custom field value, it's possible to work around its limitations as follows:

      1. Use lookupIssues to obtain a sorted list of issues where the issue key we want will be the first issue.
      2. Use a For JQL related issues branch to search for the issue key we retrieved previously, with the JQL query:
        key = {{lookupIssues.key.first}}
        
      1. Inside the branch, use the Create variable action to set a variable using the custom field value. This will allow us to extract the custom field value from the branch for later use.

      For further details of this partial workaround, please refer to our knowledge base article How to use Lookup Issues to retrieve a single custom field value in Automation for Jira Data Center.

        1. image-2023-09-27-15-18-15-337.png
          656 kB
          Luis Casanova
        2. image-2023-09-27-15-19-28-435.png
          546 kB
          Luis Casanova

              Unassigned Unassigned
              bc67f4c9d228 Luis Casanova
              Votes:
              67 Vote for this issue
              Watchers:
              59 Start watching this issue

                Created:
                Updated: