Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to make Jira "Log work" to use returnUrl link?

Maris Seimanovs December 4, 2013

I see that on our production server when I open the following link:

http://our-company.com/secure/CreateWorklog!default.jspa?id=19188&returnUrl=http%3A%2F%2Four-company.com%2Fsecure%2FDashboard.jspa

the Cancel link in the Log Work dialog indeed is linked to http://our-company.com/secure/Dashboard.jspa

and also after I log work, I get redirected to the required address.

But for some reason this does not work on my local machine in JIRA SDK when I run JIRA with atlas-run command. returnUrl seems to be ignored. Why so and how do I use returnUrl when I wish to return to my custom plugin page after loggin work?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Maris Seimanovs December 4, 2013

Oh, I found out why. In SDK I was using a link with my PC name as host. Then I noticed that FastDev is using localhost instead. Thus I navigated to the localhost:2990 link, JIRA warned me that I'm using wrong BaseUrl (why wrong? after all, FastDev was using localhost:2990 to upload my plugin after recompile), then I clicked the JIRA message to update BaseURL to localhost:2990, and suddenly my returnUrls started to work as expected.

I guess, they have messed up something in SDK - JIRA is using both hosts localhost:2990 and mycomputername:2990 and getting confused somewhere.

TAGS
AUG Leaders

Atlassian Community Events