Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Comment when do transition via REST API

I try to add comment while doing transition via REST API in scriptrunner and have some silly problems with request body. Here https://docs.atlassian.com/software/jira/docs/api/REST/8.4.3/#api/2/issue-doTransition is example of request body. In scriptrunner I have to change that braces { } with this [ ], but what I have to do with that [ after "comment". I try different ways but always have mistake with request body. Please help me write suitable request body. Here is example of mine

body = [
"update" : ["comment": [ "add": ["body": "${commentBody}"]] ],
"transition" : ["id" : "1"]
]

 

2 answers

But there is another problem It's impossible to make in one post request transition and comment. The only solution is make 2 different post requests first - to do transition and second - to add comment. Or it's possible to do it in one request rest/api/2/${issueKey}/transition ?

Suggest an answer

Log in or Sign up to answer
TAGS

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