I am using SetDueDate() function in my post function on jira scripting suite. This page says https://docs.atlassian.com/jira/6.3.1/com/atlassian/jira/issue/MutableIssue.htmlafter calling any setter method i need to call store() method. But store method is deprecated. I need another update method before issue created. is there any example ?
Please help me.
Thanks for answers.
If you want to set due date inside issue creation transition - you should just use the same issue object as provided for you, but don't use store method() for uncreated issues. Just set due date and place postfunction on the first place in the postfunction list.
This is my code. When i delete store it doesnt set due date. How can i do that. Also my post function is in first place.
from com.atlassian.jira import ComponentManager from com.atlassian.jira.issue import Issue from java.sql import Timestamp import java import time from java.util import Calendar cal = Calendar.getInstance(); ts=long(cal.getTimeInMillis()+ 1000*2*60*60) issue.setDueDate(java.sql.Timestamp(ts)) issue.store()
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.