Community moderators have prevented the ability to post new answers.
The solution to this is a database access. I dont think there are standard atlassian library classes that help you retrieve fields created by third party plugins. Moreover, the fields are not custom fields as well.
The best SOLUTION would be to :
- get the jdbc:sqlserver driver installed
- add the jar files to the build path of your package
- import the necessary classes from the jar to your java code
- and connect to the sqlserver database using the syntax for standard jdbc:sqlserver connectivity.
It makes querying the "pro fields" created by the external plugins easier.
You can store the results of the sql query in a SET and then the transfer the individual columns using their index to a hashtable.
Finally, someone that understands the question at hand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even if created by a plugin they should be Custom Fields, and available via the same methods. You can take a look at http://localhost/rest/api/2/field, to verify. These values should be available
issue.getCustomFieldValue("customfield_XXXXXX");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would also think, this will be the solution to the problem. However, if you don't know the id of the Customfield, you can also try to get it by name:
Collection<CustomField> dev1 = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("fieldName");
CustomField[] dev0 = new CustomField[5];
dev0 = dev1.toArray(dev0);
issue.getCustomFieldValue(dev0[0]));
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.