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,558,022
Community Members
 
Community Events
184
Community Groups

How can i log the name who transited the issue?

Hi,

When any logged-in user moves the issue status from 'Pending' to 'Work-In-Progress,' I plan to add an auto remark to the internal note section. For example, if user 'George1234' moves the issue status from 'Pending' to 'Work-In-Progress,' the name 'George1234' is added to the internal note area.

What is the best approach to identify the current user and make it a variable/smart-value?

Thanks,

Somnuek

2 answers

0 votes
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.
Dec 15, 2021

Hi @Somnuek Hongcharoenkul and welcome to the community,

There are three approaches with which you can accomplish that:

  • Via workflow
  • Via JA
  • Via listener (scripted) [not going to talk about it though]

If you want to do it via workflows, then could follow the approach of @Pramodh MIn this case you will only get the last person who made this transition, because this value will be overwritten.

With Jira Automation, you can create a rule and define within the scope of the project, to update a field (multi line text) and add with each transition the user's name to that field. Editing this field with advance editing you can add this code to retrieve the current user:

{ 
"update": {
"customfield_XXXXX": [{
"add": {{initiator.accountId.asJsonObject("id")}}
}]
}
}

 

It is not clear to me however from your question, what exactly is the internal note. Is it a field? Most likely yes. But what kind of field? Do you want to keep only one value or many? In which transitions you want this to occur? All of them or some of them?

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 14, 2021

Hi @Somnuek Hongcharoenkul 

Create a User Picker Custom field and add the post function in transition from one status to another to populate the field with the current user option as below shown

Current User.png

You also need to add the field in the Screen to show who made the current transition if in case that is required.

FYI,

This is already recorded in Jira and you can search the issues who made the transition from one to status to another using Advanced JQL.

Thanks,
Pramodh

Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 15, 2021

Especially this last point:

This is already recorded in Jira and you can search the issues who made the transition from one to status to another using Advanced JQL.

I would urge you to use the build in feature instead of adding another automation to the system while it is already being recorded any way.

Can someone advise what the Advanced JQL would be for this?

Thanks

Like Somnuek Hongcharoenkul likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events