the requirement is to subtract months from a date a custom field and put the result in another date custom field.
Datefield2 = Datefield1 - 10 months
I could subtract days only using script runner, any ideas?
If you want the result in a scripted field then the script will br something like
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def months = 3
def dateACF = customFieldManager.getCustomFieldObjectByName("First DateTime")
def dateAValue = issue.getCustomFieldValue(dateACF) as Date
def dateB = Calendar.getInstance()
Searcher: Date Time Range picker
Template: Date Time Picker
Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot