Forums

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

Help with an automation: Copying the "assigned" person to a "People" field in the issue.

David Martinez Moreno
Contributor
January 16, 2024

In my issue type I created a "people" field called Blank done by.

When an issue is transitioned to a certain point, I want the person who had the issue assigned to be copied to the "people" field Blank done by.

Untitled-1.jpg

Why is this not working?

2 answers

0 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.
January 16, 2024

Hi @David Martinez Moreno 

Would you please post an image of the audit log details, showing the rule execution?  That may provide some context for this symptom.

Until we see that...

You note a "People" field.  Are you using a team-managed project?  You may find this information at the lower-left side of the page's expanding area.

If so, there are some challenges with accessing People fields in automation rules.  One possible work-around would be to use and advanced edit with JSON to copy the value.  Please look at this reference to see the syntax, based on if you are using a single-select or multiple-select user field: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field

And, to do that you will want to identify the custom field id, or exact smart value, for your field.  Please look here to learn that: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

0 votes
Deivid Araujo
Contributor
January 16, 2024

Hi!

 

Try this:

 

{{issue.assignee.accountId}}

David Martinez Moreno
Contributor
January 16, 2024

Thank you. Still no luck with {{issue.assignee.accountId}}

also tried {{issue.assigned.value}} Also no luck.

Somehow nothing appears in the Blank Done by field.

David Martinez Moreno
Contributor
January 16, 2024

Tried all of these:

{{triggerissue.assignee}}
{{issue.assignee}}
{{issue.assignee.displayName}}
{{issue.assignee.accountId}}
{{issue.assignee.value}}

 

None of thses actually capture date in a "People" custom field.

In other custom fields, for example comments, the 
{{issue.assignee}}
{{issue.assignee.displayName}}
{{issue.assignee.accountId}}

Do return results, but then again, in a "people" field, nothing appears, as if looking for this person finds the person but does not click the checkmark to input the value in the People field.

Suggest an answer

Log in or Sign up to answer