How to create jira custom field to support specific screens

We are developing a jira-cloud-addon by using atlassian connect framework. In this addon we are creating custom-field through the jira REST api. Then the created custom-field is added into spesific screen using this REST call.

POST /rest/api/2/screens/{screenId}/tabs/{tabId}/fields

 In here  the custom-field is added into Default Screen, Resolve Issue Screen, Workflow Screen. Problem is , we got an error when we are trying to insert an issue with this custom-field.

Error:

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

 Could you please tell me how can i fix this issue.

1 answer

Hi Tharanga,

A number of users have pointed to authentication as the issue, however, take a look at the last two posts in the article I linked.  One refers to an authentication issue and how it was fixed which is similar to other fixes in that article.  Shah also a recommendation to make sure you have the correct permissions since you're creating these programatically.

Cheers,

Branden

Hi thanks for your reply. In here we can inject issue through the jira REST api. Its work fine. Problem is the customfield. When we create a new project , all the Issue Types of that project are assigned into a new screen schema. Then the key of that screen schema may be <PROJECT_KEY> : Software Development Bug Screen Scheme (4).

In our case, The customfield which we are created, is only supported for the spesific screens. It is not supported for the newly created screen schema which i mentioned above.

Am I doing a wrong scenario to create new customfield or Is there any other method to create customfield.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,006 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot