I want to export all the project and users list from JIRA.
We are using ondemand version of JIRA. PLease let me know if the JIRA admin can do this from the GUI.
Hello Ojase,
Thank you for your question.
REST is just a software architecture style for exposing resources.
Based on the examples I have provided above, yes, it would be require to have cURL installed on the server where you would be running the REST API calls provided. However, you are able to provide the same information by hitting those URLs from your web browser as they are GET request methods.
# DOMAIN, i.e.: mycompany https://DOMAIN.atlassian.net/rest/api/2/project
# DOMAIN, i.e.: mycompany # GROUPNAME, i.e.: jira-admin https://DOMAIN.atlassian.net/rest/api/2/group?groupname=GROUPNAME&expand=users
Before hitting the above URLs on your web browser, please make sure your are logged in your JIRA Cloud instance.
Please, refer to RESTful Web services: The basics documentation for further information.
If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
Thank you for your understanding.
—
Kind regards,
Rafael P. Sperafico
Atlassian Support
Hi Rafael,
Thanks for your answer.
Could you please elaborate the answer. Is REST API a third party thing that we need to install.
If yes, from where can we download this. and how to install it?
Regards,
Ojase
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ojase,
Thank you for your question.
Since you haven't specified under which format the export would hold its data, I would recommend you on running the following REST API calls against your JIRA Cloud instance:
http://example.com:8080/jira/rest/api/2/project [GET]
Returns all projects which are visible for the currently logged in user. If no user is logged in, it returns the list of projects that are visible when using anonymous access.
# USERNAME, i.e.: myuser # DOMAIN, i.e.: mycompany curl -D- -u USERNAME -p -H "Content-Type: application/json" -X GET https://DOMAIN.atlassian.net/rest/api/2/project
In the above call, you will be prompted to type in the password to the [USERNAME] given, in this case the password for user "myuser". Alternatively, you could call as per following avoiding to be prompted for password:
curl -D- -u [USERNAME]:[PASSWORD] -H "Content-Type: application/json" ...
You cannot get all users via REST API. You can only search using a search string.
http://example.com:8080/jira/rest/api/2/group [GET]
Returns REST representation for the requested group. Allows to get list of active users belonging to the specified group and its subgroups if "users" expand option is provided. You can page through users list by using indexes in expand param. For example to get users from index 10 to index 15 use "users[10:15]" expand value. This will return 6 users (if there are at least 16 users in this group). Indexes are 0-based and inclusive.
# USERNAME, i.e.: myuser # DOMAIN, i.e.: mycompany # GROUPNAME, i.e.: jira-admin curl -D- -u USERNAME -p -H "Content-Type: application/json" -X GET https://DOMAIN.atlassian.net/rest/api/2/group?groupname=GROUPNAME&expand=users
If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
Thank you for your understanding.
—
Kind regards,
Rafael P. Sperafico
Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there,
For Cloud instances, you would have to open a support ticket at support.atlassian.com
Cheers,
Paulo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.