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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Post Function to Auto Increment Custom Field on Jira Cloud on specific transition (not just status)

I need to increment a custom field by 1 on a post function. It is seemingly a simple ask, but I have some nuance that I cannot find an answer for.

I'm really struggling to figure out how to achieve this. I've read a dozen or so questions\replies related to this but none of them are exactly what I need. My assumption is that I need to use Scriptrunner to do this.

  • I use Jira cloud (other scripts I am seeing are for Server)
  • I need to do this on one specific transition. Note: this is not entering a specific status, but on a specific transition. I have more than one transition exiting and entering the exact same statuses, which is why I need this to be a post function and not automation. See screenshot below.
  • I was wondering if instead of Scriptruner, I can use the "Update Issue Custom Field" post function but it is not clear to me if I can make that value dynamic or if it is a static value.

1 answer

1 vote
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 01, 2023

Hi @Kevin Christmann

You can try using Jira Automation and add 1 to it everytime the transition is executed:



@Fabian Lim  I don't think that works though because automation won't let me get as specific as I need. As I mentioned (and seen in screenshot) I have 2 transitions that both have the same starting and ending status. Automation does not let you specify a transition. It only lets you specify starting and ending status. (Unless I am overlooking something.)

Unless I am overlooking something, automation can only specify the from and to status. That doesn't work for me because I have 2 distinct transitions with the same "from" and "to". I need my automation to only apply to 1 of those. Which is why I think it needs to be a post function on the specific transition.



Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events