Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

"project": "Specify a valid project ID or key"

 {    "expand""projects",    "projects": [        {            "avatarUrls": {                "16x16""https://codewetrust.atlassian.net/secure/projectavatar?size=xsmall&s=xsmall&pid=10015&avatarId=11407",                "24x24""https://codewetrust.atlassian.net/secure/projectavatar?size=small&s=small&pid=10005&avatarId=10407",                "32x32""https://codewetrust.atlassian.net/secure/projectavatar?size=medium&s=medium&pid=10005&avatarId=10407",                "48x48""https://codewetrust.atlassian.net/secure/projectavatar?pid=10005&avatarId=10407"            },            "id""10005",            "issuetypes": [                {                    "description""A small, distinct piece of work.",                    "iconUrl""https://codewetrust.atlassian.net/secure/viewavatar?size=medium&avatarId=10318&avatarType=issuetype",                    "id""10002",                    "name""Task",                    "self""https://codewetrust.atlassian.net/rest/api/3/issuetype/10002",                    "subtask"false,                    "untranslatedName""Task"                },                {                    "description""A small piece of work that's part of a larger task.",                    "iconUrl""https://codewetrust.atlassian.net/secure/viewavatar?size=medium&avatarId=10316&avatarType=issuetype",                    "id""10003",                    "name""Sub-task",                    "self""https://codewetrust.atlassian.net/rest/api/3/issuetype/10003",                    "subtask"true,                    "untranslatedName""Sub-task"                },                {                    "description""Functionality or a feature expressed as a user goal.",                    "iconUrl""https://codewetrust.atlassian.net/secure/viewavatar?size=medium&avatarId=10315&avatarType=issuetype",                    "id""10001",                    "name""Story",                    "self""https://codewetrust.atlassian.net/rest/api/3/issuetype/10001",                    "subtask"false,                    "untranslatedName""Story"                },                {                    "description""A problem or error.",                    "iconUrl""https://codewetrust.atlassian.net/secure/viewavatar?size=medium&avatarId=10303&avatarType=issuetype",                    "id""10004",                    "name""Bug",                    "self""https://codewetrust.atlassian.net/rest/api/3/issuetype/10004",                    "subtask"false,                    "untranslatedName""Bug"                },                {                    "description""A big user story that needs to be broken down. Created by Jira Software - do not edit or delete.",                    "iconUrl""https://codewetrust.atlassian.net/images/icons/issuetypes/epic.svg",                    "id""10000",                    "name""Epic",                    "self""https://codewetrust.atlassian.net/rest/api/3/issuetype/10000",                    "subtask"false,                    "untranslatedName""Epic"                }            ],            "key""CJCTP-42",            "name""C2M JIRA CONNECTOR TEST PROJECT",            "self""https://codewetrust.atlassian.net/rest/api/3/project/10005"        }    ]}

Hi 
I'm trying to create a new issue, using the meta data above. but I keep getting the error "project": "Specify a valid project ID or key"- I tried substituting the project id with XXX-234 , 50001, XXXx please help me exactly what is it looking for?

TIA

 

1 answer

1 accepted

0 votes
Answer accepted

@Saba Ghani -

Hi Saba:

In your code, it seems to be referring to the project ID (

rest/api/3/project/10005

Is that your intended project?

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Hi @Joseph yes- but this doesn't work either.
pid.PNG

@Saba Ghani -

Go to your project UI > Project settings > Details, you will be able to get the PID in the URL address bar from your broswer.  You should be able to use it in your script.

If you are creating an issue, then you should not specify the issuekey in your script.

Hope this helps.

Best, Joseph

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

172 views 6 7
Read article

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