Hi,
We need to know how create in Scriptrunner this condition:
"End date" is in the range ("Baseline end date" field, "Baseline end date " field - 7 days)
Can you help us please?
Thanks a lot.
Hi @Sandra Carrillo ,
you could use this code in a simple scripted condition:
import com.atlassian.jira.component.ComponentAccessor
def cfEndDate = ComponentAccessor.customFieldManager.getCustomFieldObjectsByName("End Date").first()
def cfBaseLineEndDate = ComponentAccessor.customFieldManager.getCustomFieldObjectsByName("Baseline end date").first()
def EndDate = issue.getCustomFieldValue(cfEndDate) as Date
def BaseLineEndDate = issue.getCustomFieldValue(cfBaseLineEndDate) as Date
return EndDate >= BaseLineEndDate.minus(7) && EndDate <= BaseLineEndDate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.