Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,553,318
Community Members
 
Community Events
184
Community Groups

How to get the displayname of an assignee id

Hi everybody, 

In a Jira automation rule, I am trying to retrieve the "display name" of an "assignee id", so I can use the display name in the issues description field. I already checked a few documentation on Jira, but either the functions are deprecated or it'is just not working:
e.g.
https://docs.atlassian.com/software/jira/docs/api/7.1.6/com/atlassian/jira/user/UserKeyService.html#getKeyForUsername-java.lang.String-


Does anyone have any advice/ideas on that topic?


1 answer

1 vote
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 24, 2023

Hi @Manju and welcome to the community,

Use a smart value like {{issue.assignee.displayName}}

More on smart values can be found here https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Hi @Alex Koxaras _Relational_ ,

thanks for the quick reply :) 
I did try out this option but my problem is, that the "issue of interest" isn't accessable in the moment of request. 

My use case is as follows:
I have a list of Jira user ids, which I use in a Jira automation rule to create issues for each of the users (with a for each action) based on an issue template I defined before (using the Deviniti Module):

The "More options" field in the "Create a new task"-Action is following:

pic_2.PNG

My issue template has the issue.key = JTR-57, the newly created issues are in a  Board starting with the key = AZE. 
To  be able to apply the method {{issue.assignee.displayName}} I need access to these newly created Issues. For some reason I can only access the Template issue (I checked with the logging, which issue keys are written to output). That's why I am looking for a convert-function or a getName-function to just convert the Jira user ids to its displayNames.


Hi @Alex Koxaras _Relational_ ,

Do you have an idea how to solve this problem? 

best regards,
Manju

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events