Forums

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

How do I set the reporter and watchers via ticket creation URL?

jonb July 23, 2020

I'm using this method to set up links for ticket creation

https://confluence.atlassian.com/jirakb/how-to-create-issues-using-direct-html-links-in-jira-server-159474.html

(At the moment using the REST API instead isn't an option).

 

For the Reporter, it says:

To have the reporter field default to the currently logged in user, the user must be logged in and must not have the Modify Reporter permission.

Should this happen by default?  Or is there a key I should pass for the reporter field?

 

Is there a way to set default watchers for a ticket?  (A comma separated list of usernames?)

I tried ?watcher=username and ?watchers=username but neither worked.

2 answers

2 accepted

1 vote
Answer accepted
Taranjeet Singh
Community Champion
July 23, 2020

@jonb For the reporter piece, you should make sure that the current user (executing the issue creation using above html link) is already logged into JIRA instance and does not have "Modify Reporter" permission in that project's permission scheme. You do not need to pass any value for the reporter field in the html link in this case.

 

I am not sure about whether this html link issue creation supports Watcher field or not, but I am sure that the user who creates the issue will automatically become the watcher of that issue.

Hope it proves helpful!

jonb July 23, 2020

I see, yes some of the users are marked as developers, so the reporter field isn't automatically filled in.

 

Also, on further inspection following these instructions:

The name of the field can be found by examining the source code of the page in which the field is in. 

The "watchers" field is set at customfield_10367.  It's strange that that isn't a default field.

0 votes
Answer accepted
jonb July 23, 2020

As @Taranjeet Singh  mentioned, I needed to check the "Modify Reporter" permission in that project's permission scheme.  Some users are listed as developers which will not fill in the reporter field automatically.

 

The "watchers" field is set at customfield_10367.  It's strange that that isn't a default field.

Suggest an answer

Log in or Sign up to answer