Set Team field to null by json

Neville October 30, 2024

Screenshot 2024-10-30 at 6.10.15 PM.png

If I clear the team field, it will return "Error while parsing additional fields. Not valid JSON."How should I handle the empty state

1 answer

1 accepted

1 vote
Answer accepted
Marc - Devoteam
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 Leaders.
October 30, 2024

HI @Neville 

Could you set the JSON to:

{
     "fields": {
          "customfield_10001": null
                    }
}

This as removing a Team option to empty the field has no ID, but value Null.

So you can't set the field to an id as string.

Bill Sheboy
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 Leaders.
October 30, 2024

Hi @Neville 

Yes, and...to Marc's suggestions:

If you are trying to copy the Team to the child issues AND handle the case where the value could be empty, please use conditional logic in your JSON to make it dynamic:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/

Kind regards,
Bill

Like # people like this

Suggest an answer

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

Atlassian Community Events