Excerpt |
---|
|
Theses APIs allow you to hide Field from Field Configurations |
Alkaes JIRA Plugin Field Administration Enhanced provides some additional capabilities related modification of Field Configuration.
Hide in Others
Goal : Allows to hide some Fields from all others Field Configuration excepted a part of them.
Usage : As soon as you had a new Customfield in your JIRA instance, it is added systematically in all Field Configuration. This default behaviour is not the most expected one. In practice, if this field has a default value (it is more frequent for types Select, Radiobutton and Checkbox), this value willbe store in database, even if it has no sense for the most of Issue Type managed in your JIRA instance.
By using this APIs, you can remove/hide the concerned Field in all other Field Configuration.
API | /rest/extendedAdmin/1.0/fields/hideInOthers |
---|
Method | POST |
---|
Payload | Schema Property | Value | Description |
---|
fieldLayoutId | Long | Id of FieldLayout (Field Configuration) where the identified Fields have to be kept. | fieldLayoutIds | List<Long> | List of Ids of FieldLayouts (Field Configurations) where the identified Fields have to be kept. | fieldIds | List<String> | List of Ids of Custom Fields that have to be kept in identified FieldLayout(s) |
Samples Code Block |
---|
| {"fieldLayoutIds":["10200","10201"],"fieldIds":["customfield_10400"]} |
Code Block |
---|
| {"fieldLayoutIds":["10200"],"fieldIds":["customfield_10400"]} |
Code Block |
---|
| {"fieldLayoutId":10200,"fieldIds":["customfield_10400"]} |
|
---|
Return Code | : All changes performed without issue. : Changes failed. |
---|
Return | There is no special return provided, since this request can meet some Timeout. All needed details are traced in log files |
---|
Hide Field in Other
Goal : Allows to hide some Field from all others Field Configurations excepted the current.
Usage : See above.
API | /rest/extendedAdmin/1.0/fields/hideFieldInOther |
---|
Method | GET |
---|
Parameters |
Property | Value | Description |
---|
fieldLayoutId | Long | Id of FieldLayout (Field Configuration) where the identified Fields have to be kept. | fieldId | String | Id of Custom Fields that have to be kept in identified FieldLayout(s) |
|
---|
Return Code | : All changes performed without issue. : Changes failed. |
---|
Return | |
---|
Hide All
Goal : Allows to hide all Fields from the current Field Configuration.
Usage : To crearte a new Field Configuration, you can :
- Create a new one from scratch. It will include all fields
- Copy from another one. It will include the same fields
In most of cases, you should not need all of these fields.
API | /rest/extendedAdmin/1.0/fields/hideAll |
---|
Method | GET |
---|
Parameters |
Property | Value | Description |
---|
fieldLayoutId | Long | Id of FieldLayout (Field Configuration) where the identified Fields have to be kept. |
|
---|
Return Code | : All changes performed without issue. : Changes failed. |
---|
Return | |
---|
...
Excerpt |
---|
|
Theses APIs allow you to hide Field from Field Configurations |
...
On this page:
...