Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 acquire list of PIDs?

How can I find a list of project ids without reviewing the source for each project page?

3 answers

1 accepted

0 votes
Answer accepted

I simply went to the list of my projects within JIRA and then reviewed the source. At least all of my projects and ids were on one page.

Hi,

you could use the rest-API (if enabled). Just add "/rest/api/2/project" to your jira url. You'll get all information on all projects you have access to. You need to parse the information to get only the project keys but i'll leave that up to you.

The url should look something like http://myjira.de/rest/api/2/project

Regards,

Björn

I wasn't able to replicate this. Is this a funciton that can be implemented with the OnDemand version?

FYI: Jira's REST API follows standard REST convention, so the root URL will show a list, but then specifying an ID will return just details for the one item.

http://myjira.de/rest/api/2/project/<Project Key>

So for instance, if I have a Jira project called "Application Security Tasks" and its project key is AST, such that the ticket numbers are like "AST-1205", then ...

http://myjira.de/rest/api/2/project/AST

Will get me the project information from the REST API. It's less to parse than the full list.

As we are currently a start-up, I was hoping to find a free solution.

Suggest an answer

Log in or Sign up to answer
TAGS

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