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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

633 views 3 11
Read article

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