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

Allow users to specify certain parameters while using the Edit issue action

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Gathering Interest (View Workflow)
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Actions
    • Labels:
      None
    • Feedback Policy:

      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.

      Description

      Currently, if we use the information of a custom field to add a certain user as an approver, Automation for Jira will try to match the information being inserted to two different parameters user_key and username.

      However, this can cause issues when we have users created before the 8.4.0 version of Jira Software, where their user_key matches the username of a different user.

      For instance, let's consider two different users:

      • usera (created after Jira 8.4.0)

      Username: usera
      user_key: JIRAUSER10200

      • testusera (created before Jira 8.4.0)

      Username: testusera
      user_key: usera

      If we try to configure a custom field, to insert usera as an approver, Automation for Jira will try to match the information to both parameters. As testusera was created first and its records are listed in the app_user and cwd_user tables before the information of usera, Automation for Jira will match the information and try to add testusera's information instead.

      This can cause incorrect users to be added, along with further issues if the incorrect user is disabled or does not have the required permissions to be added as an approver.

      • Workaround

      Use the More Options section and specify the parameter being used to be the user_key or username instead. You can use the example below for the username as a reference:

      {
          "update": {
              "Approvers": [
                  {
                      "add": { "name": "{{issue.customfield_XXXXX}}" }
                  }
              ]
          }
      }
      

      Note that you will need to replace XXXXX, for the id of the customfield.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gperes@atlassian.com Gregory Peres
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: