How to call a script runner REST endpoint from a custom Dialog connecte to a script runner Web Item?

I have followed the example in to create a custom dialog wired to a javascript.

Now, I would like to have two buttons in the dialog box, let's say "A" and "B" so that when A is pressed the endpoint /rest/latest//A is called, whereas when B is pressed the REST endpoint /rest/latest//B is called.

Could you provide me with some hints on how to achieve this?


1 answer

1 accepted

You just need to wire it up with javascript.

Let's say you have used the example here:

Your javascript might be something like the following (untested):

@Jamie Echlin [Adaptavist],

It has been a little bit more than a year since you posted this answer.

I just ran into a similar issue and your response from here helped solved it.

Hope its okay that I write an answer to my own question with the links you put in this response.

Thank you!


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 13 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

16 views 0 0
View post

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