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:
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
👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events