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 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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.