The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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.