We have an Enterprise account and with the new Operations I am having a hard time trying to assign a work item from the alert assignee. After reading https://support.atlassian.com/jira/kb/assign-jira-work-items-to-alert-acknowledgers-in-opsgenie/
I am trying to modify that process to use the assignee.
My steps so far:
In the Sync settings, When an alert is assigned or when someone takes ownership of an alert, I can get a comment with the assigned user into the work item.
I have created an automation that parses the comment and gets the user name.
When I execute the send web response I am not getting any data.
https://#####.atlassian.net/rest/api/2/user?query=First+Last manually works
but using the smart value does not : https://#####.atlassian.net/rest/api/2/user?query={{AlertAssignee.urlEncode}}
returns 200 but nothing else.
Anyone know how to do this correctly?
Hi @John Szarek
I was looking at your inquiry and example, and noticed a few things:
- The "username" parameter was deprecated when used with the /rest/api/2/user endpoint. It is indicated in the documentation itself. (ref. https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-get).
While testing using a valid username, you instantly get an error message:
{
"errorMessages": [
"The 'accountId' query parameter needs to be provided"
]
Now you need to use the account ID as the parameter exclusively.
The problem now is that Atlassian doesn't offer a smart value that retrieves the alert's assignee ID (ref. https://support.atlassian.com/cloud-automation/docs/jira-smart-values-alerts/)
Unfortunately, you will be stuck on this one due to lacking features.
Regards,
- Pablo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.