Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,077
Community Members
 
Community Events
168
Community Groups

Automation question: Copy contents of assignee field to a custom text field

Hi Folks,

 

I am wondering if it is possible to copy the assignee field to a custom text field.  This is needed because we are using Aha Roadmaps and users without an Aha account get sent over as email addresses, not first and last names as we would like.

Thanks!

1 answer

1 accepted

1 vote
Answer accepted

Hi @sherri_nc 

If you just need the displayed name, you may use {{issue.assignee.displayName}} to edit your custom field.  There are other user fields, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/

Next, the assignee could be set at issue create or edited later.  So you would need two automation rules to update the custom field: one trigged on issue create and one on issue updated.

To get you started on creating your rules, please review this documentation and examples:

Kind regards,
Bill

Hi Bill,

 

I am not quite following your answer...I do just need the first and last name but don't I need to give the automation more information than what you are saying to do?

-sherri

Hi Sherri,

A disclaimer: I am not using that addon tool, Aha Roadmaps, so please try this to learn if it works as you expect.  For text, custom fields, this should work.

If people are entering their first and last names for their Jira user name, this should work with an automation rule.  For example, when an issue is created you could use this: 

  • trigger: issue created
  • action: re-fetch the issue
  • action: edit issue to change your custom field to {{issue.assignee.displayName}}

Once this works, copy the rule and change the trigger in the copy to check if the assignee changed.  That will cover the assign-later/reassign cases.

Thanks,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events