Hi,
I want to have a simple custom field which is like a flag true | flase. It should calculate its value based on value of other custom fields.
I am able to do this using following code :
Object soSignoff = arg1.getCustomFieldValue(customFieldManager.getCustomFieldObject("customfield_10226")); Object pdSignoff = arg1.getCustomFieldValue(customFieldManager.getCustomFieldObject("customfield_10224")); return (soSignoff != null && pdSignoff!=null)? "Approved" : "Not Approved";
But one problem with above code is hardcoded ids of custom fields. I want it to be more generic so that in different projects/contexts I should be able to provide set of custom fields based on which it should calculate the value.
Note : I haven't tested above code yet.
Hi,
information about adding configuration to custom field is in Practical JIRA Plugins (O'Reilly, 2011). For quick (not so nice sollution) you can use default value or description fields.
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.