Trigger Issue and Assign to specific Assignee

Alexandra Wilson May 14, 2024

I would like to trigger creating a new issue assigned to a specific user based on a previous issue. 

Here is an example: 

When: Value changes for 
             QA User(s): Jon Doe

Then: Create a new Task
           Issue Type Created: Task
            **Assignee: Jon Doe

**There is no option to assign the assignee based on the original task I have tried using smart values with the following input but still not working correctly:Screenshot 2024-05-14 at 3.42.34 PM.png

Any and all help is great appreciated!

2 answers

2 votes
Bill Sheboy
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.
May 14, 2024

Hi @Alexandra Wilson 

Rather than using advanced edit with JSON, you may select the Assignee field from the dropdown list in the Create Issue action, and then type in the smart value for the field.

For your source field, is it a single-select user field?  If so, you may enter this:

{{triggerIssue.customfield_13352.value.accountId}}

For a single-select field, the value attribute is the selected item.  And in your case, you want the accountId of the selected user to make the assignment.

When you type that smart value expression into the field, it will appear below the field.  Select it, and then it will be used for the issue create.

Kind regards,
Bill

0 votes
Alexandra Wilson May 14, 2024

Thanks a lot for your response. The only issue I am running into is there QA user could be multiple different people. For example, I want the QA user to be Jon Doe but on another task, I may want it to be Sally Jones. It would be an OR condition. 1 assigned QA user, based on the initial issue. 

Bill Sheboy
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.
May 15, 2024

First thing, please try to stay with one thread when responding.  That will help others reading this question in the future know if there are multiple solution approaches.  Thanks!

 

You describe the QA User(s) field is multiple-select, but there can only be one Assignee user for an issue.  How do you know to whom the new issue should be assigned?

The approach I described assumes only one user is selected in QA User(s) with the trigger.  When there are multiple users selected, that field cannot be used as a source for assignment.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events