Forums

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

How to get the Jira Smart Value for the name of the individual who transitioned an issue

Maggie Rivard December 16, 2022

I am trying to add logging info into a custom field on my issues in Jira Software.

I want to track who transitions an issue, when they transitioned the issue, and any comments they added to the issue in a custom field.

Using automation (trigger is the transitioning of an issue) I want a custom field to populate the name of the individual who transitioned the issue, the date it was transitioned, and any comments that were added by that user.

I am still pretty new to Jira so any help would be appreciated, thank you!

2 answers

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
December 16, 2022

Hi Maggie,

The smart value that you are looking for is {{initiator.displayName}}, that will give you the name of the use that triggered the automation.

Maggie Rivard December 19, 2022

@Mikael Sandberg 

Thank you so much. Do you know the Jira Smart Value for the date it was transitioned?

Mikael Sandberg
Community Champion
December 19, 2022

That would be {{issue.updated}}

Maggie Rivard December 19, 2022

I was able to figure out the date: 

{{now.shortDate}} 

https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html
Felix Puller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2023

Maggie can you explain how you stored the value in a custom field? so did you e.g. do sth like this with the audit log action in automation?

{{issue.customfield_10929}} = {{initiator.displayName}}

I want to store the username in a custom field but somehow this is not working.

0 votes
Troy
Contributor
April 10, 2024

Hi @Mikael Sandberg is there a way to capture just the first name of the user as {{initiator.displayName}} prints the full name?

Mikael Sandberg
Community Champion
April 10, 2024

@Troy This smart value should do it, {{initiator.displayName.split(" ").first}}

Like Troy likes this
Troy
Contributor
April 10, 2024

@Mikael Sandberg It most certainly did, thanks a lot :)

Like Mikael Sandberg likes this

Suggest an answer

Log in or Sign up to answer