Groovy script for adding a project context to a custom field

Anshu Raina July 13, 2020

I want to add/create  a project context for a custom field using a groovy script.

Any help on this!

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2022

Hi @Anshu Raina 

Can you please be a bit more specific? You mean to edit the default's field context and update it so as to include certain projects? Or to create a new one?

Are you indeed on cloud, or on premises?

If you are on cloud, you could do that by using REST API and to be more specific this;

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/#api-rest-api-3-field-fieldid-context-get

and you can choose either update or create.

Suggest an answer

Log in or Sign up to answer