Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I can put an internal comment jsdPublic

Eduard Diez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2018

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.

1 answer

1 accepted

1 vote
Answer accepted
Eduard Diez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2018

Finally I saw that ServiceDesk have their API REST.

https://developer.atlassian.com/cloud/jira/service-desk/rest/

Stefan Musch September 11, 2019

Hi. I'm trying to do the same thing. What did you end up using in the:

.body([

xxxx: false

])

 

Thanks.

Suggest an answer

Log in or Sign up to answer