Greetings.
Is there any way to list all mandatory fields for Issue Type in the Project via Java API?
Community moderators have prevented the ability to post new answers.
Found out myself:
List<FieldLayoutItem> fieldLayoutItems = ComponentAccessor.getFieldLayoutManager().getFieldLayout(project, issueTypeId).getFieldLayoutItems(); for (FieldLayoutItem fieldLayoutItem : fieldLayoutItems) { if (fieldLayoutItem.isRequired()) { ... } }
I think that this is probably what you want:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(See the second section, "Discovering issue field data", and note that the fields specify whether or not they are "required".)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Chris! But I was really looking for some Java API, not REST. Do you by any chance have this kind of information?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, sorry... I hadn't seen your response until now. Glad you found the answer you needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.