Estoy probando de poner con una PostFunction en un WorkFlow de ServiceDesk, un comentario interno. Logro poner el comentario en donde tocaría ponerlo, pero quiero que ese comentario sea interno para que el cliente de ServiceDesk no lo pueda ver.
La forma sería cambiando el jsdPublic a false, pero no me deja, en teoría tendría que usar la última posición de jsdPublic[x-1] pero al poner los corchetes me da error.
Cómo puedo poner la última posición para que me cambie el valor?
def commentResp = post("/rest/api/2/issue/" + issueKey +"/comment")
.header('Content-Type', 'application/json')
.body([
jsdPublic: false
])
.asObject(Map)
I'm trying to put an internal comment with a PostFunction in a ServiceDesk WorkFlow. I can do a comment where I would like to put it, but I want that this comment becomes internal, so that the ServiceDesk client can not see it.
The form would be changing the jsdPublic to false, but it does not leave me, in theory I would have to use the last position of jsdPublic [x-1] but when I put the brackets it gives me an error.
How can I put the last position so that I change the value?
Because in the API REST I couldn't see.
Finally I saw that ServiceDesk have their API REST.
https://developer.atlassian.com/cloud/jira/service-desk/rest/
Hi. I'm trying to do the same thing. What did you end up using in the:
.body([
xxxx: false
])
Thanks.
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.