Forums

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

How to set the Assignee based on trigger issue reporter field

serge calderara
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 Leaders.
January 11, 2023

Dear all,

I have a service Desk issue for which when I change its status I need to create an issue on an other project by setting the new created issue reporter by the assignee of the Service Desk trigger ticket

For that I use an automation rule in which I add a component Create Issue and the different fields I need to set.

Then for the reporter field I set it with a smart value as {{triggerIssue.assignee.accountId}} , I have also try {{triggerIssue.assignee.displayName}} but the ticket is not created and return an error that reporter field need to be set

So it seems that is not able to get the Assignee value of the Service Desk ticket at the time of the creation

I have try to set some refresh data in my automation rule as well as some log and even the log is not abble to get the assignee value

Any idea what is going on ?

See video linked below :

https://drive.google.com/file/d/1j00wtOPjjXcl4woyPx4fFF9rT4jHg2H9/view

And as you can see from video, even if I send the reporter field, after rule execution failure, the assignee of SD ticket is reset to Unassigned for some reason

Regards

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
January 11, 2023

Hi @serge calderara - You should only need to set as follows:

{{triggerIssue.assignee}}

This should copy the assignee from the trigger issue to the destination issue.  A couple other things to consider:

  • You probably want a condition to make sure the Assignee is not Unassigned.  This will cause issues with setting reporter
  • Make sure that the Assignee has permission to be set as Reporter on the target project.
  • Verify that if not using Jira Automation as actor that the individual has "Modify Reporter" permission on the target project

Suggest an answer

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

Atlassian Community Events