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

Jira script runner check a custom field then edit another?


I'm currently trying to make a script to no avail.

I have two custom fields one called "Resolution level" and the other "Resolved by".
I need a way for when a ticket transitions from "open" to "resolved", it checks the resolution level and if its "None" it sets the "Resolved by" field to be empty.

1 answer

0 votes

This needs a little clarification:

When you say "from "open" to "resolved"" - I assume you want a post-function script? (it's the most simple approach for this, as it'll just need an "if/then set field" block of code)

Is the resolution level a select list?  If so, is this "none" JIRA's display for "empty", or is it an option in your list?

Is "Resolved by" a user-picker field or text? 

Hi Nic,

Resolution level is a select list, it goes from "None" then "1" "2" "3".

Resolved by is a custom field User Picker (single user).

Sorry, I was not clear on how to answer the first one - is "none" an option you've added or is it the system "none"?  If you go to edit the list of options, do you only see 1, 2 and 3 as options?

Hi Nic,

I see "None" as an option, I believe it is an option we added.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Learn how to request and manage app requests in the Marketplace

G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...

62 views 1 7
Read article

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