Hi,
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?
I got an answer. you can ignore this thread
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.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
}
def dialog2 =
"""
<script>
window.location.href = "${result}"
</script>
<h1>If you see this, what you tried to do may didn't work please try to visit: ${result}</h1>
"""
Hopes this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.