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

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

0 votes
Answer 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):


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
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

215 views 3 4
Read article

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