Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Filling reporter field to currently logged in user when using direct HTML links to create issue

Edited

Hi,

I was creating Jira issue by using direct html link to prepopulate some fields and I wanted to fill the reporter field with the current user. I tried making reporter=currentuser but it doesn't work. Instead it shows the following error and fills the field with the string currentuser.

err.PNGerr2.PNG

 

the link looks like this:
 <a id="issue" href="https://jira-trial.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=10001&issuetype=10001&reporter=currentuser&summary=testing">   create issue
            
</a>

I would appreciate your help!! 

2 answers

0 votes

One of the ways i was able to get this to auto populate with the user was to remove reporter from a copied screen and then apply this screen to the Create issue of the screen scheme.  When the ticket was created, it auto-populated the reporter 

Hi @Mikiyas Mohammed Welcome to Atlassian Community!

You have to put username of the repoter, currentuser doesn't work. 

 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.

 

Thanks!

Hi @Vikrant Yadav

I wanted to have the  reporter field default  to the currently logged in user. But if I didn't specify it in  the html link it will not fill it.

err3.PNG

Hi @Mikiyas Mohammed  Have you checked Modify Reporter permission ? 

try to remove modify reporter permissions then check.

If you are JIRA admin then remove Administrator role or group jira-adminstrators from Modify Reporter permission.

 

Thanks 

Hi @Vikrant Yadav , I am with the exact same issue with @Mikiyas Mohammed . Do you mean

1. Do not specify the reporter in the URL

2. Change Administrator role to Member or Viewer on the Project Settings > Access page

@Jinhwan Kim  reporter=currentuser doesn't work beacuse in Reporter field "currentuser" option is not avaiable. You have to put exact username or you can remove this reporter=currentuser from link. Better to remove this and remove "Reporter" field as well from screen. When user create an issue and user is logged in into JIRA during issue creation, then jira automatically pick current user as Reporter. In case, if user is trying to create issue without logging into JIRA, in that you have to sepcify default reporter. 

 

Thanks

V.Y

It makes sense. Thanks for sharing-!

I found the JIRA Service Management app for my need. It works perfectly with the ticket creators who are in the same org with my team.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

163 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you