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

create issue using product rest api

Sathish J October 29, 2023

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

Comment

Log in or Sign up to comment
Nic Brough -Adaptavist-
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.
October 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
TAGS
AUG Leaders

Atlassian Community Events