REST API returns me something like:
{
"id": "description",
"name": "Description",
"custom": false,
"orderable": true,
"navigable": true,
"searchable": true,
"schema": {
"type": "string",
"system": "description"
}
}
How get field's schema in the plugin (not through REST API)?
Community moderators have prevented the ability to post new answers.
I'm a little confused - that appears to be a JIRA field you are looking at, not Confluence (which doesn't really have fields). Could you confirm the system?
Also, when you say "not through REST", you mean you want to use the internal APIs, so you are writing a plugin to be installed in the system (not a Connect plugin)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I pick the wrong tags a lot as well! Just needed to be clear. So, when you say a fields "schema", what do you actually want to know about the field? Is it stuff like how the field is searched and displayed, or where it is used in Jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need to get the same information as via REST, but through internal APIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I'd use FieldManager to get that sort of stuff. See https://developer.atlassian.com/static/javadoc/jira/6.3.15/reference/com/atlassian/jira/issue/fields/FieldManager.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, but I haven't found the right methods to get the necessary information
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.