Forums

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

Need to Get assignee in labels field

Sanjivani Wayal
Contributor
July 18, 2023

Hi,

Iam writing Automation that if issue is open status label should be populated with Asignee name 

Writing {{issues.assignee}} in edit field is giving me Asignee ID i want the name and if i try {{issues.assignee.displayname}} its giving error as in label it doesnt accepts space .

 

Can someone help me with the same.

1 answer

1 accepted

3 votes
Answer accepted
Nic Brough -Adaptavist-
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.
July 18, 2023

This sounds like a poor use of the labels field, why are you not using user fields to hold associated users?

If you must do it, you will need to get the name of the user as a string, and change it to something that does not have spaces in it (spaces in labels are a horrid thing to do to your people, it makes labels pretty much useless)

I wouldn't bother.  If you really want to tag people in this way, you don't want to use their display names anyway - people change their names sometimes, so it's a waste of time.  It would be better to use their ID, or email address.

Sanjivani Wayal
Contributor
July 19, 2023

I think you are right i have used User Picker field and that worked. Thanks

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