Forums

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

Assign Current User to a custom Text Field (read only)

Ryan B. Gonzales November 5, 2021

Hi,

I am trying to assign the current user to a custom Text Field (read-only) in my workflow by adding below in the post functions of my transition.

image.png

However, the result is different (see below).  The value of the current user becomes a hash value.

Actual Result:

image.png

Expected Result:

image.png

 

May I know if how can I achieve the expected result? Is there any other way to do this in a custom Text Field (read-only)?

Thank you.

2 answers

1 accepted

0 votes
Answer accepted
Matthias Gaiser _K15t_
Community Champion
November 5, 2021

Hi @Ryan B. Gonzales ,

I‘d also recommend @Alex Koxaras _Relational_ solution.

But there’s also a way to solve your exact question. The „hash“ you‘re talking about is the Atlassian account ID for this user which uniquely identifies them across all Atlassian Cloud offerings.

Using Automation for Jira you can use user smart values to create a rule which copies the assignee into your custom text field and allows you to resolve the ID to a display name. The smart value for copying that would be {{issue.assignee.displayName}}

I hope you find your desired solution.

Cheers,
Matthias

Ryan B. Gonzales November 7, 2021

Hi, @Matthias Gaiser _K15t_

It worked. Thank you so much for answering my question.

Best,

-Ryan

Like Matthias Gaiser _K15t_ likes this
2 votes
Alex Koxaras _Relational_
Community Champion
November 5, 2021

Hi @Ryan B. Gonzales 

Why you don't use a User Picker field and have in only on your view screen? This will make things easier for you.

Suggest an answer

Log in or Sign up to answer