I need help with setting up a transition post function to change the due Date of an Issue. I've added on Script runner as I get the impression that this is the only path possible to achieving what I want to.
Now not having any experience in Java/ Groovy, to say I am a noob would be putting it kindly, but I have had a first attempt at it anyway. Would this work?
def newDueDate = "31/03/2017"
put("/rest/api/2/issue/${issue.key}")
.header("Content-Type","application/json")
.body([
fields:[
due: newDueDate
]
])
.asString()
logger.info("dueDate of " & newDueDate & "set successfully")Note :: I just want to confirm that this is the correct approach as we only have a single instance of JIRA cloud, therefore any code I load will be going into the production environment and I would rather not mess this up.