Jira Scriptrunner REST endpoint redirect to a website

Elyashiv Grosser May 17, 2023


I have the following structure, using scriptrunner features:

1. Custom web item with "Do WHat" = "Run code and display a dialog"

2. REST endpoint that gets the request and pops up a dialog window, the user fills it up and clicks "Submit"

3. REST endpoint get's the submit, creates a new jira issue

What I need is after creating the issue in stage 3 immediately open it.

Any idea how to do so?

1 answer

1 accepted

0 votes
Answer accepted
Elyashiv Grosser May 17, 2023

I got an answer. you can ignore this thread

Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2023

Hi @Elyashiv Grosser 

Can you please share what is the solution, I have a similar requirement, but instead of creating a new issue, it should store the response in the ticket. 


Elyashiv Grosser May 31, 2023

Hi @Harsh

I will try to keep it simple.

After creating the issue, I get the new issue key, and store in a variable the url of the key:


    if (new_issue_key) {

        result = "<base url>/browse/" + new_issue_key

    } else {

        result = "ERROR: No Issue was Created"

Then create a new dialog as follows:
  def dialog2 =



                window.location.href = "${result}"


        <h1>If you see this, what you tried to do may didn't work please try to visit: ${result}</h1>


Hopes this helps.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events