Hello
I'm trying to get around the inability to import {{INTERNAL}} comments via CSV, as well as Cloud limitation, and came to a point where I decided to try updating them via REST API.
Documentation here says which endpoint URL to use and responses, however it doesn't provide any clues about which format PUT should be!
I tried various ways, from this
def setComment = put("/rest/api/2/comment/${commentId}/properties/sd.public.comment").body('{
"key": "sd.public.comment",
"value": {
"internal": false
}
}')
to this
def setComment = put("/rest/api/2/comment/${commentId}/properties/sd.public.comment").body('{internal: false}')
But none of them works. Would appreciate any help on this.
The solution appears to be more simple — just set header and
def setComment = put("/rest/api/2/comment/${commentId}/properties/sd.public.comment")
.header('Content-Type', 'application/json')
.body([internal: true])
.asString()
Hi cPrime - since this is development related, you might want to try asking this over at: https://community.developer.atlassian.com as well (if you haven't already).
There's a lot of helpful and experienced people over there and you might well get a quicker answer in there than on here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, will do next time — there just a lot of changes which we didn't get used to yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.