We have two date (custom) fields. Requirement is when one edits field A, field B needs to be refreshed with A's data (date). Is there some script we can try and use?
Thanks.
Try this code:
import com.atlassian.jira.component.ComponentAccessorissue.setCustomFieldValue( ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("dateTo") , issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("dateFrom")))
Thanks for the response. Should this be added in Behaviors, or Script Runner? Can you please provide a little more detail.
This is for scriptRunner custom script postfunction.
We have already implemented a postfuntion . But we need the value to be copied from Field A to Field B incase of any changes to Field A's value and not to depend on Status Change.Can you suggest some method to implement this in detail?
It looks like you're new here. Sign in or register to get started.