Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning work item from alert

John Szarek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2025

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? 

1 answer

1 vote
Pablo Vergara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 25, 2025

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

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events