Forums

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

Trying to blank out field in JIRA

Amanda Sugatan May 27, 2025

Hi There!

I created an automation rule to blank out fields in an issue but it keeps breaking. Here were the instructions for chatGPT - I tried both suggested smart values. When I validate the rule, it runs fine - 2025-05-27_12-13-26.PNG2025-05-27_12-14-53.PNG2025-05-27_12-15-18.PNG2025-05-27_12-15-44.PNG2025-05-27_12-16-36.PNG2025-05-27_12-16-51.PNGAny thoughts on how to fix this rule?

 

Thanks! 

2 answers

1 vote
John Funk
Community Champion
May 27, 2025

Hi Amanda,

If you are wanting to clear the field, select the field as you have done, but then leave it blank - don't put anything in there at all. 

Amanda Sugatan June 3, 2025

Ahh! Awesome - I will try! Thank you!

Like John Funk likes this
Amanda Sugatan June 3, 2025

Hi there - I tried this but unfortunately it didn't work (please see the reply below) - additional suggestions? Thanks!

John Funk
Community Champion
June 5, 2025

What type of field is that? And is it required? You might need to set it to None.

Amanda Sugatan June 6, 2025

it's a dropdown field but unfortunately we don't have the option of NONE - because x'ing out the value give a null value that shows as 'None"2025-06-06_14-21-51.PNG2025-06-06_14-23-23.PNG

John Funk
Community Champion
June 6, 2025

Is it required? Can you clear it on the screen directly? 

Also, try this: {{clear}}

Amanda Sugatan June 6, 2025

It's not a required field and yes - it can be cleared on the screen directly. 

 

great - I'll try!

Amanda Sugatan June 6, 2025

Hi John - I tried to use the smart value - but unfortunately it didn't work :(

 

2025-06-06_15-50-37.PNG2025-06-06_15-51-49.PNG

John Funk
Community Champion
June 6, 2025

Grrrr. Okay, this is the last thing I know to try. Just do it with one field to see if it works. 

Click on the More options at the bottom of the Edit work item section. Then put this in:

{

     "fields": {

           "CCO - Core Data Quality": null

     }

}

Where XXXXX is the id of the field you want to clear. 

You can click off the box to send notifications. 

Amanda Sugatan June 6, 2025

okay I'll try - not sure what the id is though

Amanda Sugatan June 6, 2025

does this look right to you?

2025-06-06_18-00-36.PNG

Amanda Sugatan June 6, 2025

didn't work :( 2025-06-06_18-01-19.PNG2025-06-06_18-01-26.PNG

John Funk
Community Champion
June 6, 2025

No, replace everything that was there in the advanced area with what I posted above. And you can find the field ID by going to the list of custom fields, search for the field. Then click the 3 dots to the far right of the field and select Edit. The ID will be the last 5 numbers in the URL in the browser address. 

 

Amanda Sugatan June 9, 2025

Thanks John - question - where can I find the list of custom fields? I'm not an admin for JIRA so I'm thinking it may not be visible to me. Thanks!

Like John Funk likes this
John Funk
Community Champion
June 9, 2025

Yes, you would need to be a Jira admin for that. So, that being the case, I have updated my response above to use the field name instead of the field ID. Replace everything in the current Advance part with just what is above. 

Amanda Sugatan June 17, 2025

thank you!!

Okay I will try! Thank you!

Amanda Sugatan June 17, 2025

Hi John! So I added the revision towards the bottom of the rule! Good news - it ran without exclamation marks! But unfortunately - didn't null out the field :/

Amanda Sugatan June 17, 2025

Any suggestions as to why it may not be working as we hoped?

 

Amanda Sugatan June 17, 2025

2025-06-17_10-53-53.PNG2025-06-17_10-58-20.PNG2025-06-17_10-57-58.PNG2025-06-17_10-57-44.PNG2025-06-17_10-57-31.PNG

Amanda Sugatan June 17, 2025

Okay I adjusted the rule - still not working the way we'd hope - does this look right to you?

2025-06-17_11-45-47.PNG2025-06-17_11-44-46.PNG2025-06-17_11-44-04.PNG  

Amanda Sugatan June 17, 2025

Okay I adjusted the rule - still not working the way we'd hope - does this look right to you?2025-06-17_11-45-47.PNG2025-06-17_11-44-46.PNG2025-06-17_11-44-04.PNG

John Funk
Community Champion
June 17, 2025

Not sure that this will make a difference either, but be sure to remove the field from the list of fields that you are trying to clear out. In fact, you might just to take them all out because they are not getting cleared that way anyway. 

Amanda Sugatan June 17, 2025

OH MY GASH!! IT WORKEDDD!! I cleared out the rest of the fields as you suggested!

YOU WERE RIGHT!! The rule was stopping when it broke!! I realized I had {{""}} in the due dates!! This is awesomeee!!!

Okay cool - so how would the rest of the JQL look with 27 fields :( 

Also - is there a way to null out the QA and PROD due dates also?2025-06-17_17-34-06.PNG2025-06-17_17-35-48.PNG2025-06-17_17-41-07.PNG

John Funk
Community Champion
June 17, 2025

Great! Glad to hear. Follow the formatting in the link below and just keep using each field name like you do the first. Be sure to not select them above. 

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

 

Amanda Sugatan June 18, 2025

OKay great! Would I do the same for the QA and PROD dates?

John Funk
Community Champion
June 18, 2025

Yes, with all fields that you can't just do the simple clearing. 

0 votes
Raj
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!
May 27, 2025

@Amanda Sugatan Did you try this

Amanda Sugatan June 3, 2025

Hi Raj, thanks for reaching out - my apologies for the delayed response - I will test now and keep you both posted! Thanks!

 

Amanda Sugatan June 3, 2025

Hi there - I tried this but unfortunately it didn't work - additional suggestions?

2025-06-03_17-55-44.PNG2025-06-03_17-55-11.PNG

Amanda Sugatan June 17, 2025

Okay I adjusted the rule - still not working the way we'd hope - does this look right to you?

2025-06-17_11-45-47.PNG2025-06-17_11-44-46.PNG2025-06-17_11-44-04.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events