You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm having some difficulty clearing a custom field in automation.
When I set it to clear as follows, it isn't changed:
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds good - glad you are up and running again. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I learned that you can access this end point in the REST API to know what operations are available for each custom field.
https://<your_company_name>.atlassian.net/rest/api/3/issue/<issue_key>/editmeta
I used this for the "flagged" field and it worked for me.
{"update":{"flagged":[{"remove": {"value": "Impediment"}}]}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.