Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Jira issue url from secure/CreateIssueDetails!init.jspa

Subhajit Bhuiya October 9, 2018

I am plugin I bring the Jira issue creation dialog using secure/CreateIssueDetails!init.jspa. I want the get the url of the issue created. How can I get that programatically once user press the Create Issue button?

1 answer

0 votes
Nic Brough -Adaptavist-
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.
October 9, 2018

You don't.

At the point the create dialogue takes over, your code is no longer being run - you've jumped out to different procedure.

All you can do is create a post-function on the create that can capture what you need and feed it back to where you need it somehow.

Subhajit Bhuiya October 9, 2018

@Nic Brough -Adaptavist- what do you mean by - " create a post-function on the create that can capture what you need and feed it back to where you need it somehow.". Can you give me an example of such post function which will tell me the url / id of the Jira issue created.

Nic Brough -Adaptavist-
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.
October 9, 2018

I mean what I said.  Add a post-function to the create transition in the workflow.  That will need to store the data about the issue that you want to use in your process.  Then you need to work out a way to read it from there.

I can't tell you more than that, as where you store the data and how you know where to send it is entirely down to your code and where and how it is going to get that.

Suggest an answer

Log in or Sign up to answer