Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Set custom field to empty in automation

I'm having some difficulty clearing a custom field in automation.

When I set it to clear as follows, it isn't changed:

automation_empty1.PNG

The same with trying in the additional fields (one at a time):

{
"update" : {
"TmpField" : [{"set":"" }]
}
}

{ "fields" : {
"TmpField" : null
}
}


{ "fields" : {
"TmpField" : ""
}
}

Among other things. I can set it to a new value, and even to things I wouldn't expect a single line field to accept such as "\n" 

I'd prefer not to use a transition post function (as this is intended to be cleared when transitioning from a status and there are various destination statuses) but that's seeming like my only option.

Any thoughts on how to clear this field using automation?

 

 

3 answers

1 accepted

0 votes
Answer accepted
John Funk Community Leader Mar 19, 2020

Hi Iona,

What does the log tell you when it fires but doesn't clear the value?

Kia ora John

It said "Issues edited successfully [ISSUE KEY]"

I've just tried deleting and remaking the custom field and it works with the new one, so I'm not sure what was happening with it before.

John Funk Community Leader Mar 19, 2020

Sounds good - glad you are up and running again.  :-)

Had the same issue recently. To clear an insight field using automation you need the following json:

{
     "update" : {
           "customfield_xxxxx" : [{"set": []}]
      }
}

As Insight fields are stored as an array, you need to populate the field with an empty array.

Hello,

 

Im trying to cleat the 'Resolution' field on my end. Doesn't look like mine is working properly. 

 

This is what I've got. Would you be able to help?

 

Snip20210329_288.png

Thanks!

John Funk Community Leader Mar 29, 2021

Hi Hoc - it is always better to create new questions in the community than to add to old ones. Please post a new question so more people will see it, and we can answer your questions in the new. Thanks!

Like Hoc likes this

Suggest an answer

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

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

310 views 3 20
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