How to get jira key by project name

patricy_chang March 17, 2013

Sorry, Would you please see https://support.atlassian.com/browse/JSP-154919

Thanks advance!

Best Regard,

Patricy

1 answer

0 votes
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2013

due to permissions nobody else but the reporter and atlassian staff can view support cases.

if you ask for help in a public area like this you will have to retype (or copy & paste) your text here

patricy_chang March 17, 2013

Sorry, Here description :

Our scenario like below:
1. PM(Project Manager) write mail to apply JIRA project to administrator,
and offer project name,usally include customer number,project name,yymm
2. jira administrator base on these information to create jira project, and set jira key,
and jira key usually is not the same with project name,(like these web project name = JIRA Support, jira key=JSP)
3. When call web service API must need project jira key like
http://jira.atlassian.com/rest/api/2/project/projectJiraKey

so, if didn't save project jira key , then can't call web service API,
One way is: let PM keyin the jira key information by manually and save it.
the other way is: suppose it could automatic to get project jira key, let application system to save this information by some api like give project name, then get jira key return.
the worst way is: to read db directly dirty way.

Would you please kind of to tell use how to do.

Thanks in advance!

Best Regard,

Patricy

C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2013

hi.

i wonder why the admin is not able to respond and put in project name and key in the email.

so the only way i know is to query all projects that are visible to you (logged in user)

please refer to

http://docs.atlassian.com/jira/REST/latest/#id119483

you will have to login to your jira and access sth like

http://example.com:8080/jira/rest/api/2/project

wich will return all projects you are allowed to see (by permissions)

patricy_chang March 18, 2013

Hi, C.Faysal,

Thanks your reply for this question.

Although you remind this web service could get all project information, which could get project jira key.

actually, project number is too much.

So, after we discuss this problem, we choice first way :
PM keyin the jira key information by manually and save it.

to resolve this problem.

Thanks!

Patricy

patricy_chang March 23, 2013

How to resolved this question, receive letter , link in mail , open this question ...

Suggest an answer

Log in or Sign up to answer