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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Need help with Script Runner to automate setting a value in a custom field based on a custom field Edited


Could you please help me on how to start using Script runner for our JIRA issue automation?

I am currently evaluating Script Runner to do automation to set a value in the JIRA issue based on a condition in another custom field.

The following is one of the scenarios:

Project: RP

Issuetype: RP

Custom field#1: Option list single selection (A, B, or C)

Custom field#2: Date time stamp

We would like to automate using Script Runner to do the following:

1. When the user edits Custome field#1 to the value B or C, the user requires to enter a timestamp in Custom field#2.


2. When the user edit Custom field#1 to the value B or C, automatically set the current time in Custom field#2.

I am trying to find some documentation or an example to do the above from the Script Runner documentation but unsuccessful. Could you please confirm if Script runner will be able to do the intended usage functionality?

We are using JIRA Software Server (not Cloud version)

Thank you,


1 answer

Hi Kent,

I use Jira Cloud at the moment. However, it seems that smart values apply to Jira servers as well.

You might be able to create an automation rule that is executed when the specific values are selected in the custom field#1. Maybe the automation can add timestamp automatically to the custom field#2. 

Here is some documentation

I hope this helps and happy new year :)



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,142 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you