• 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

            Marc Dacanay made changes -
            Labels New: ril
            Marc Dacanay made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 979279 ]
            Yit Wei made changes -
            Description Original: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly
            # Run the rule
            !screenshot-1.png|thumbnail!
            # Audit logs show field is successfully edited despite not actually working

            This is expected behaviour as per our REST API documentation
            * https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-editIssue
            * https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/#field-meta-data

            {panel}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:
            {code}
                    "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"
                        ] {code}{panel}

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

            h3. 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.

            h3. Workaround
            # Set the reporter using username instead.
            # Use 'Send web request' to perform a user search based on the email address: [Find users - GET /rest/api/2/user/search|https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/user-findUsers]. 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|https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1155142199.html] on how to perform REST API with automation
            New: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly
            # Run the rule
            !screenshot-1.png|thumbnail!
            # 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
            * https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-editIssue
            * https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/#field-meta-data

            {panel}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:
            {code}
                    "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"
                        ] {code}{panel}

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

            h3. 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.

            h3. Workaround
            # Set the reporter using username instead.
            # Use 'Send web request' to perform a user search based on the email address: [Find users - GET /rest/api/2/user/search|https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/user-findUsers]. 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|https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1155142199.html] on how to perform REST API with automation
            Yit Wei made changes -
            Description Original: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly

            This is expected behaviour as per our REST API documentation
            * https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-editIssue
            * https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/#field-meta-data

            {panel}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:
            {code}
                    "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"
                        ] {code}{panel}

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

            h3. 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.

            h3. Workaround
            # Set the reporter using username instead.
            # Use 'Send web request' to perform a user search based on the email address: [Find users - GET /rest/api/2/user/search|https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/user-findUsers]. 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|https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1155142199.html] on how to perform REST API with automation
            New: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly
            # Run the rule
            !screenshot-1.png|thumbnail!
            # Audit logs show field is successfully edited despite not actually working

            This is expected behaviour as per our REST API documentation
            * https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-editIssue
            * https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/#field-meta-data

            {panel}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:
            {code}
                    "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"
                        ] {code}{panel}

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

            h3. 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.

            h3. Workaround
            # Set the reporter using username instead.
            # Use 'Send web request' to perform a user search based on the email address: [Find users - GET /rest/api/2/user/search|https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/user-findUsers]. 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|https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1155142199.html] on how to perform REST API with automation
            Yit Wei made changes -
            Description Original: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly


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


            h3. Actual Results



            h3. Workaround
            Set the reporter using username instead.

            h3. Notes
            # The exact same JSON but using *name* instead of *emailAddress* works well
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "name": "<username>"}
                        }
                    ]
                }
            }{code}
            New: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly

            This is expected behaviour as per our REST API documentation
            * https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/issue-editIssue
            * https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/#field-meta-data

            {panel}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:
            {code}
                    "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"
                        ] {code}{panel}

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

            h3. 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.

            h3. Workaround
            # Set the reporter using username instead.
            # Use 'Send web request' to perform a user search based on the email address: [Find users - GET /rest/api/2/user/search|https://docs.atlassian.com/software/jira/docs/api/REST/9.11.0/#api/2/user-findUsers]. 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|https://confluence.atlassian.com/jirakb/how-to-extend-automation-for-jira-with-rest-api-calls-1155142199.html] on how to perform REST API with automation
            Yit Wei made changes -
            Description Original: h3. Problem
            Unable to edit issue to set reporter using email address

            h3. Environment
            Tested in 8.2.0, 9.0.2

            h3. Steps to Reproduce
            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly


            h3. Expected Results
            Reporter is successfully set

            h3. Actual Results
            Reporter field is cleared but the desired user is not added as the new reporter
            !screenshot-1.png|thumbnail!
            * Audit logs show field is successfully edited despite not actually working

            h3. Workaround
            Set the reporter using username instead.

            h3. Notes
            # The exact same JSON but using *name* instead of *emailAddress* works well
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "name": "<username>"}
                        }
                    ]
                }
            }{code}
            New: h3. Problem
            A4J is currently unable to set reporter using email address when using 'Edit Issue' action

            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly


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


            h3. Actual Results



            h3. Workaround
            Set the reporter using username instead.

            h3. Notes
            # The exact same JSON but using *name* instead of *emailAddress* works well
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "name": "<username>"}
                        }
                    ]
                }
            }{code}
            Yit Wei made changes -
            Resolution Original: Not a bug [ 12 ]
            Status Original: Closed [ 6 ] New: Gathering Interest [ 11772 ]
            Yit Wei made changes -
            Affects Version/s Original: 9.0.2 [ 106012 ]
            Affects Version/s Original: 8.2.0 [ 105008 ]
            Workflow Original: JAC Bug Workflow v3 [ 4414562 ] New: JAC Suggestion Workflow 3 [ 4422903 ]
            Issue Type Original: Bug [ 1 ] New: Suggestion [ 10000 ]
            Priority Original: Low [ 4 ]
            Agata Kowal made changes -
            Resolution New: Not a bug [ 12 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]
            Yit Wei made changes -
            Description Original: h3. Problem
            Unable to edit issue to set reporter using email address

            h3. Environment
            Tested in 8.2.0, 9.0.2

            h3. Steps to Reproduce
            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly


            h3. Expected Results
            Reporter is successfully set

            h3. Actual Results
            Reporter field is cleared but the desired user is not added as the new reporter
            !screenshot-1.png|thumbnail!
            * Audit logs show field is successfully edited despite not actually working

            h3. Workaround
            # Set the reporter using username instead

            h3. Notes
            # The exact same JSON but using *name* instead of *emailAddress* works well
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "name": "<username>"}
                        }
                    ]
                }
            }{code}
            New: h3. Problem
            Unable to edit issue to set reporter using email address

            h3. Environment
            Tested in 8.2.0, 9.0.2

            h3. Steps to Reproduce
            # Set up a rule using 'Edit Issue' and use the following JSON
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "emailAddress": "<email address>"}
                        }
                    ]
                }
            }{code}
            (i) Replace <email address> accordingly


            h3. Expected Results
            Reporter is successfully set

            h3. Actual Results
            Reporter field is cleared but the desired user is not added as the new reporter
            !screenshot-1.png|thumbnail!
            * Audit logs show field is successfully edited despite not actually working

            h3. Workaround
            Set the reporter using username instead.

            h3. Notes
            # The exact same JSON but using *name* instead of *emailAddress* works well
            {code:json}{
                "update": {
                    "reporter": [
                        {
                            "set": { "name": "<username>"}
                        }
                    ]
                }
            }{code}

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

                Created:
                Updated: