Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to set screen for custom field programmatically?

Alexander Urzhumtsev April 22, 2013
CustomField customFieldSync = customFieldManager.createCustomField(
									"Id",
									"Description",
									customFieldManager
											.getCustomFieldType("com.atlassian.jira.plugin.system.customfieldtypes:textfield"),
									null, contexts, issueTypes);

I don't know how to set screen and set value "Read only" programmatically

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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 22, 2013

You will find sample code of adding to screen in this post. Setting value examples are all over in Answers ;)

Jobin Kuruvilla [Adaptavist]
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 22, 2013

If you want to make a custom field read only, don't have an edit template. Or remove it from "Edit" screens.

Alexander Urzhumtsev April 22, 2013

Thanks for your answer. I added screen, but how to set "Read only" for custom field?

Alexander Urzhumtsev April 22, 2013

I understand this, I don't know how to do it :(

Alexander Urzhumtsev April 24, 2013

I do it so

customFieldManager.getCustomFieldType("com.atlassian.jira.plugin.system.customfieldtypes:readonlyfield")

0 votes
Jobin Kuruvilla April 22, 2013

You will find sample code of adding to screen in this post. Setting value examples are all over in Answers ;)

TAGS
AUG Leaders

Atlassian Community Events