Forums

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

Do you have closed status in Questions?

a_boltro
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!
April 11, 2019

If there is accepted answer do you need close question afterwards?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 30, 2022

Your script is not actually trying to set the field, and I don't think your "if" statements are right.

For setting custom fields, https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console is my go-to reference, you'll be able to see how to set your value from that.

The if statement problem I see is that whenShouldRestoreCF will contain an option, not a string, if the field is a select list.  If it is, I would try:

if( "1 week".equals(whenShouldRestoreCF.getName() ) ){

TAGS
AUG Leaders

Atlassian Community Events