Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can I search JIRA for an issue based on pid?

I was curious if I am able to use the search bar to go through all of my issues and retrieve the issue based on the pid. I know that projects show the pid in the URL, and was curious if I can search based on that id.

I know I can search based on the JIRA Key (XXX-##), however I am mainly looking to see the the project level items only. 

From my own basic testing, I couldn't do it, but I figured I would give it a shot here. 

2 answers

1 accepted

2 votes
Answer accepted

I think that JQL such as


will work with the project id. It looks for the id first, then the project key, then the project name IIRC

I confirmed that JQL using the numeric project id works

1 vote

Hello @Caroline Pastorelli 

Welcome to the community.

Can you clarify what you mean by "project level items"?

Also can you clarify what you mean by "pid" and give an example?

Projects are containers for issues. There can be different types of issues (i.e. Epic, Story, Sub-task), but all of them will have a Jira Key that includes the Project key and a number.

You can search for all issues in the project using 


project="<project name>"

Projects do have a unique numeric number associated with them also, but the Project Key rather than that unique numeric id is what is typically displayed in the URL.

If by "project level items" you mean that you are looking for all issues that are of a particular issue type in a project, you can do that using variations on the following:

project=<projectKey> and issueType=<issueTypeName>

pid is the unique number associated with each project, as you say, not usually shown. But it can be used in JQL

Like Caroline Pastorelli likes this

@Matt Doar__ LinkedIn 

I know what you meant by "pid". That may not be the same thing @Caroline Pastorelli means by "pid". That is why I ask for them to clarify their terminology. 

Hey, Thank you for the help on this!


To clarify by pid: when selecting a project, I select the Project Settings button on the bottom left of the page. Once the Project settings page loads, at the end of the URL: it says pid=#####. That is what I was referencing. 

My apologies for the confusion!

Hello @Caroline Pastorelli 

Is there still an outstanding question? Let us know so we can provide additional advice if needed.

This is no longer an outstanding question, thank you for all of your help! I am able to search for the project based on the pid when using JQL with the query of project=pid#. 

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events