Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I search JIRA for an issue based on pid?

Caroline Pastorelli September 9, 2022

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
Matt Doar
Community Champion
September 9, 2022

I think that JQL such as

project=1234

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

Matt Doar
Community Champion
September 10, 2022

I confirmed that JQL using the numeric project id works

1 vote
Trudy Claspill
Community Champion
September 9, 2022

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=<projectKey>

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>
Matt Doar
Community Champion
September 10, 2022

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
Trudy Claspill
Community Champion
September 11, 2022

@Matt Doar 

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. 

Caroline Pastorelli September 13, 2022

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!

Trudy Claspill
Community Champion
September 13, 2022

Hello @Caroline Pastorelli 

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

Caroline Pastorelli September 13, 2022

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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events