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

How to find projects associated to a particular user Edited

I have to list all projects a user associated to in JIRA ( in which he can create an issue) as a drop down in my application. Is there a way to find that?.
 
Currently the following steps is what I am doing to get it done.
1. Making call to - https://jira.xxx.com/jira/rest/api/2/project
2. From the project lists got as response from #1 for each of those projectKey making a call to below api with  
https://jira.xxx.com/jira/rest/api/2/user/assignable/search?project=XXX
3. if the response for #2 contains the logged in user then it will be shown in drop down.
 
Is this the correct way or is there a better approach for the same.
Thanks in advance
 
 

1 answer

You could use: GET /rest/api/2/issue/createmeta

For example, if you make a GET request to:

https://{your-jira-url}/rest/api/2/issue/createmeta

You should get a list of the projects in which the user has permission to create issues.

This assumes that:

  • the user logs into your application.
    and  
  • your application makes the request using the user's credentials.
Like Dominique Delforge likes this

If I am the JIRA admin, how can I make the REST request as a particular user and get back the result?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,098 views 7 0
Join discussion

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