How to export the list of all projects and users in JIRA on demand version

Ojase Emmanuval April 23, 2015

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.

4 answers

3 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 24, 2015

Hello Ojase,

Thank you for your question.

REST is just a software architecture style for exposing resources.

 

  • Use HTTP methods explicitly.
  • Be stateless.
  • Expose directory structure-like URIs.
  • Transfer XML, JavaScript Object Notation (JSON), or both.

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

0 votes
Ojase Emmanuval April 23, 2015

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

0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2015

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

0 votes
Paulo Junior
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2015

Hi there,

For Cloud instances, you would have to open a support ticket at support.atlassian.com

 

Cheers,

Paulo

Suggest an answer

Log in or Sign up to answer