Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
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

REAT API PUT Request not Updating the issue but not throwing error

I am executing a script to keep fields synchronized between Epics and their children. When I run the script it updates the children with a PUT

 

def result = put('/rest/api/2/issue/' + issueKey)
.header('Content-Type', 'application/json')
.body([
fields:[
customfield_12802:[
value:issue.fields.customfield_12802.value,
id: issue.fields.customfield_12802.id,
self:issue.fields.customfield_12802.self]
],
customfield_10202:[
value:issue.fields.customfield_10202.value,
id: issue.fields.customfield_10202.id,
self: issue.fields.customfield_10202.self]
])
.asString()

 

Custom Field 12802 is updated perfectly fine, but Custom Field 10202 is not updated and just remains the same. There is no error thrown and it is supposedly executed successfully. I've triple checked that the custom field ID is right and the 3 sub-fields all exist and are populated. Even stranger, this field is also updated on Subtasks, and that works fine as well with the same format, though without the first CF (12802) 

1 answer

Hi Andrew,

Might be pointing out something obvious here but have you checked whether the customfield 10202 is on the create/edit view of the issue where it isn't working?

The fact that it does work for subtasks and not on the parent made me think in this direction.

Let me know if this helped!

 

Jeroen

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

84 views 0 5
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