• Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Smart-values
    • 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

      A4J is currently unable to set reporter using email address when using 'Edit Issue' action

      1. Set up a rule using 'Edit Issue' and use the following JSON
        {
            "update": {
                "reporter": [
                    {
                        "set": { "emailAddress": "<email address>"}
                    }
                ]
            }
        }

        Replace <email address> accordingly

      2. Run the rule
      3. Audit logs show field is successfully edited despite not actually working. Reporter is completely removed instead of being updated.

      This is expected behaviour as per our REST API documentation

      The fields that can be updated, in either the fields parameter or the update parameter, can be determined using the /rest/api/2/issue/{issueIdOrKey}/editmeta resource.

      When running the suggested REST call to get the editable metadata for any custom issue we get the following response for the reporter:

              "reporter": { 
                 "required": true,
                  "schema": {
                      "type": "user",
                      "system": "reporter"
                  },
                  "name": "Reporter",
                  "fieldId": "reporter",
                  "autoCompleteUrl": "http://localhost:2990/jira/rest/api/latest/user/search?username=",
                     "operations": [
                      "set"
                  ] 

      Suggested Solution

      Allow A4J to set reporter using email address, instead of only username.

      Why This Is Important

      It is common for A4J to work with email addresses from text fields. There are times where reporter needs to be set based on these email addresses.

      Workaround

      1. Set the reporter using username instead.
      2. Use 'Send web request' to perform a user search based on the email address: Find users - GET /rest/api/2/user/search. Retrieve the username of the user with the response and use that to update the reporter field. Refer to How to extend Automation for Jira with REST API calls on how to perform REST API with automation

            [JIRAAUTOSERVER-868] Unable to set reporter using email address

            There are no comments yet on this issue.

              Unassigned Unassigned
              ywoo Yit Wei
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: