Update NULL customfields via REST API (jira-ruby)

I'm specifically working with Ruby jira-ruby but I'm having trouble even finding examples in the Atlassian Tutorial on how to do this -- which makes me suspicious.

I create an issue and some custom fields are NULL and others are populated.

For those custom fields that are populated, I can update those fields through the API. Actually I can do this a number of ways with different libraries.

For those custom fields that are NULL I haven't been able to update those fields through the REST API.

Is there a different structure to the JSON for adding a customfield? I'm just trying to update a custom field of "First Name" from NULL to "Tom". it's a simply string, not a drop down or select list. And I'm stuck.

1 answer

The issue isn't trying to fill in a NULL field.

The issue is that you have to have a valid issue before you can do this.

I was trying to edit one field, but there were several required fields that weren't popluated. This failed screen validation. this happens when you create a ticket from email.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

113 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you