I am creating a custom field using the JIRA Cloud REST API. It gets added to a default screen. I then have to manually add this field to other screens. Is there a way to do this using the API?
Hi AatifNazar,
as far as I know it is not currently possible. See the following posts:
- Adding Issue Field to project create screen with REST API
- https://community.atlassian.com/t5/Jira-questions/JIRA-API-Create-Issue-with-custom-field/qaq-p/1126615
You can create a custom field context https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/#api-rest-api-3-field-fieldid-context-post and then assign it to a project and issue type, but I suppose this is a different use case.
Cheers
Vojtěch Schlemmer [MoroSystems, s.r.o., Czech Republic]
It is possible. I am new user so I can only post 2 links lol.
Base URL: https://developer.atlassian.com/cloud/jira/platform/rest
Create Custom fields:
Base URL/v3/api-group-issue-fields/#api-rest-api-3-field-post
Get Screens:
Base URL/v2/api-group-screens/#api-rest-api-2-screens-get
Get Screen Tabs:
Base URL/v3/api-group-screen-tabs/#api-rest-api-3-screens-screenid-tabs-get
Assign Custom Fields to Screen:
Base URL/v2/api-group-screen-tab-fields/#api-rest-api-2-screens-screenid-tabs-tabid-fields-post