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 get jira key by project name

patricy_chang Mar 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 Mar 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 Mar 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 Mar 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 Mar 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 Mar 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase

Friday Fun: What's your best vacation planning hack?

Let's face it, work can be challenging but fulfilling, especially when you enjoy the challenges thrown at you.  However for me, nothing compares to going on vacation (or holiday as some of you m...

627 views 31 4
Join discussion

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