Hi everybody,
i'm using a post function for creating multiple issues. The original issue has a date custom field. In some of the new created issues i would like to set as due date the value of the date custom field from the original issue. At the moment i can't do it.
In some others i would like to set as due date +/- 1 day the value of the date custom field. I can;t do even that.
The date custom field i have is called: Starting date
the syntax i have used is:
issue.duedate = ${cfValues['Starting Date']}
i'm getting the following error:
The staring date field is mandatory. So there in no way to be blank
the order that i have put the functions are:
Thanx in advance,
Kostas
The first solution didn't copy the value but the second solution works perfectly. Any idea how to reduce or increase a date field value?
Thanx a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
after some experiments i found my way to modify the date. For example if i want to reduce the value by 1 day i'm using the following:
def cf = customFieldManager.getCustomFieldObjectByName('Starting Date') val = issue.getCustomFieldValue(cf) - 1 issue.setDueDate(val)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.