Hello guys,
I have few questions.
1. Is it possible to create scripted field which works as a picker for example i want list of all spaces in Confluence and you can pick one of them?
If no
2. Is it possible to to use script runner to affect custom field configuration? To achive 1.
If no
Do you know any solution to create dynamic picker field based on for example rest api call or sql query?
Thanks in advance,
Maciej O.
No. Scripted fields show data that is calculated by the code behind them.
If you want a field to read its options from a database, use one of the "database field" add-ons that are in the marketplace (nfeed and database field are the two I've used, but I think there are others)
Hello Nic,
Maybe this is possible to change custom field configuration via script?
Cheers,
Maciej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can write scripts that will change field configuration, but there is no way to change a field's code (the stuff that makes it a read-only element)
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.
Can you tell me which classes can be used to change configuration of custom field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
fieldManager is the starting point for configuring fields.
Bear in mind that configuring fields means changing visibility, renderer, searching and so-on. It does not allow you to change field type or provided behaviour.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.