I can put an internal comment jsdPublic

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
Accepted answer

Finally I saw that ServiceDesk have their API REST.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 39m ago in Jira

How you can achieve compact and easy-to-maintain workflows in your JIRA( Server)

This approach requires you to have the JIRA administrative rights. The main aim of this article is to help you achieve an organized, easy-to-maintain workflows in your JIRA instance thereby, reducin...

18 views 0 0
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you