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

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

This widget could not be displayed.

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

This widget could not be displayed.
Paulo Junior Atlassian Team Apr 23, 2015

Hi there,

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

 

Cheers,

Paulo

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

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

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

31 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you