Hi
i need script that copy date value from c
customfield_10408
to
customfield_10500
.
i try with below script but not worked and when execute transition (behind is script post function) error showed.
import java.util.* import com.atlassian.jira.issue.Issue import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.fields.CustomField import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.CustomFieldManager import static java.lang.Math.* import java.sql.Timestamp def customFieldManager = ComponentAccessor.getCustomFieldManager() def customField = customFieldManager.getCustomFieldObject("customfield_10408") def customFieldtemp = customFieldManager.getCustomFieldObject("customfield_10500") issue.setCustomFieldValue(customField, customFieldtemp)
error:
Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB com.atlassian.jira.issue.fields.ImmutableCustomField cannot be cast to java.util.Date
You can find a ton of solution proposal on this site. https://answers.atlassian.com/questions/44079143 your code dont seem to set any value based on any field at the moment.
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.