Answer by Syed Majid Hassan on 24 May 2023
Hi,
The following works for me:
def res = httpClient.put("/api/v2/tickets/${issue.key}.json", """
{
"ticket": {
"custom_fields": [
{
"id": 13952392909585,
"value": true
}
]
}
}
"""
)
Here you need to replace the id with the correct field ID that you are trying to work on.
Also, the value is right now set as true. Here you can use the mapping you created to reference it and set the correct value (from the replica).
Thanks
Majid