We are trying to use Jira API to create issues in jira and need to access cascade custom field values of a project using Jira API. Can somebody please share some code samples to achieve this?
Thanks
Sunesh
If cfvalue is the customfield value, then bel0w steps have to be used to get each options
HashMap<String, Option> hashMapEntries = (HashMap<String, Option>) cfvalue;
Option option1 = hashMapEntries.get(CascadingSelectCFType.PARENT_KEY);
Option option2 = hashMapEntries.get(CascadingSelectCFType.CHILD_KEY);
This applies to JIRA 5.1 +
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply Chaithra, one more question, is there any way to set the cascade custom field value through JIRA API using the "field values" instead of "field ID's" .
Thanks once again
Sunesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to use the IDs. This was done because users wanted to rename the field values. If the values were stored, there would be no way of changing it. You'll have to work out how to map this yourself.
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.