It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Answer accepted

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you