Set current logged in user when creating a ticket from URL?

Gustavo Matias March 30, 2019

I would like the current logged in user to be set when creating a ticket from a url.

e.g.:

https://viewthespace.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=15005&issuetype=1&labels=build-reliability&priority=2&description=CI SPY: https://ci-spy.herokuapp.com/files/1849&summary=Flaky spec: spec/controllers/activities_controller_spec.rb

How can I do that?

1 answer

0 votes
Ismael Jimoh
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.
March 31, 2019

Hi @Gustavo Matias

I am unsure and doubt this is possible. The way I see it, there are 2 ways to go about this:

  1. Allow JIRA automatically set the reporter via a post-function using the assign to current user post-function (recommended):
    Screenshot 2019-03-31 at 18.26.27.png
  2. Use a rest API for issue creation and JIRA would normally automatically set this.

Hope this helps.

Gustavo Matias April 2, 2019

@Ismael Jimoh for some reason that didn't work. It does work when creating the ticket from within JIRA, but the use case here is when creating through the create issue details url I posted above. any ideas?

Ismael Jimoh
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.
April 3, 2019

I am not sure why it fails but to reduce point of error fix the white space before summary.

I have seen rest calls fail due to white spaces in the URL. So let us rule this out first.

Secondly if the issue is successfully created please make sure you place the post function after the create event else it may fail.

Suggest an answer

Log in or Sign up to answer