Whenever I am trying to use the scripted field, it works fine but while creating an new Issue JIRA thorws error
Error creating Issue: Error occurs while creating issue:This is due to the plugin being incompatible with the version of JIRA. For more details please consult logs.
MY JIRA and script runner versions are
JIRA v6.1.6
Scripr Runner v. 2.1.16
My script is like below, please help me to find the cause.
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.component.ComponentAccessor;
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField planned = customFieldManager.getCustomFieldObjectByName("Planned End Date");
CustomField actual = customFieldManager.getCustomFieldObjectByName("Actual End Date");
return issue.getCustomFieldValue(actual) - issue.getCustomFieldValue(planned) ;
Hi, I just tested your code and It's working fine.
Maybe you need to change your field template?
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.