Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

custom field availability for Create issue screen for all projects

jibin mathew May 14, 2018

How can i make sure  the custom field added to JIRA is available to all projects in JIRA. 

The default configuration settings of the custom field is as  below 

Global context. Apply to all issues in Jira. 

Issue Types: Any issue type

But once i try to create the issue via API on an existing project its giving the error 

customfield_' cannot be set. It is not on the appropriate screen, or unknown.

So how can i make sure the  custom field is available to Create issue screen  for all projects exists in  my JIRA account by default.  So via API i can create issues under the projects and add all custom values via API

1 answer

1 vote
Jobin Kuruvilla [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.
May 14, 2018

You need to add the custom field on to the appropriate screens so that it can be set during the creation. If you are an admin, you can use JIRA's field helper to figure out the screens to be used.

https://confluence.atlassian.com/adminjiraserver071/jira-admin-helper-802593078.html#JiraAdminHelper-FieldHelper

If you are using APIs, there are options where you can disable the option where JIRA checks if the field is present on the screen. That might be another route you can use if you do not want users to set the field when they are using the interface.

jibin mathew May 14, 2018

I am using API and how can i use options where you can disable the option where JIRA checks if the field is present on the screen.  I think this will work for me 
Any documentation links available ?

Jobin Kuruvilla [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.
May 14, 2018

Are you using Java APIs or REST API?

jibin mathew May 14, 2018

Its REST API

Jobin Kuruvilla [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.
May 15, 2018

Server REST API doesn't support it I am afraid. For Cloud, you have the following option.

overrideScreenSecurity

See https://developer.atlassian.com/cloud/jira/platform/rest/#api/2/issue-editIssue

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events