Forums

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

Can we update project field configuration scheme through any API or Automation?

Kishore D
Contributor
April 21, 2022

As an Engineer, i want to update Project field configuration scheme through API or automation like script runner.

Can this be done?  can i  have any hints to do this?

1 answer

0 votes
Graham Twine _Slm_
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.
April 21, 2022

You can look into the Java API which is accessible from Scriptrunner.

https://docs.atlassian.com/software/jira/docs/api/8.22.0/com/atlassian/jira/issue/fields/layout/field/FieldLayoutScheme.html

 

Personally as I have scriptrunner available I prefer to do things like making fields visible or mandatory etc in Scriptrunner behaviors.

 

https://docs.adaptavist.com/sr4js/latest/scriptrunner-migration/migrating-to-or-from-cloud/migrate-from-scriptrunner-for-jira-server-to-cloud/behaviors

 

What is your rationale for wanting to automate this?

You also do not mention if this is Cloud or DC...

Kishore D
Contributor
April 26, 2022

My Jira instance is DC.

Graham Twine _Slm_
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.
April 28, 2022

If there is a public API like that in the link I posted then I cannot see why not.

Did you look at the class in the link I sent you?

Suggest an answer

Log in or Sign up to answer