Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

create issue using product rest api

Hi 

i am currently building an app using forge.I want to create an issue in jira using product rest api.

i tried using the payload given in forge rest api documentation but i am getting 400 bad request

errors: {
parent: 'Could not find issue by id or key.',
components: "Field 'components' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_20000: "Field 'customfield_20000' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_40000: "Field 'customfield_40000' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_70000: "Field 'customfield_70000' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_10000: "Field 'customfield_10000' cannot be set. It is not on the appropriate screen, or unknown.",
fixVersions: "Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown.",
priority: "Field 'priority' cannot be set. It is not on the appropriate screen, or unknown.",
timetracking: "Field 'timetracking' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_30000: "Field 'customfield_30000' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_80000: "Field 'customfield_80000' cannot be set. It is not on the appropriate screen, or unknown.",
environment: "Field 'environment' cannot be set. It is not on the appropriate screen, or unknown.",
security: "Field 'security' cannot be set. It is not on the appropriate screen, or unknown.",
versions: "Field 'versions' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_60000: "Field 'customfield_60000' cannot be set. It is not on the appropriate screen, or unknown.",
duedate: "Field 'duedate' cannot be set. It is not on the appropriate screen, or unknown.",
customfield_50000: "Field 'customfield_50000' cannot be set. It is not on the appropriate screen, or unknown."
}

 

can anyone help me in this to create a issue using product rest api in forge app with proper payload including issue type,summary,description,attachment etc..

 

thanks in advance

 

1 comment

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 29, 2023

Welcome to the Atlassian Community!

Most of the errors are likely to be being thrown because of what they say - the fields are not available on the create screen.  This error is however, most frequently seen when the account in use does not have permission to create or edit issues. 

Imagine the REST call is a human typing into a screen - the human won't get a create screen if they have not logged in as someone with create permission in that project, so the "field is not on screen" is technically the right description.  But in this case, the underlying case of "not on screen" is "not logged in / not permissioned"

Like Vikrant Yadav likes this

Comment

Log in or Sign up to comment