Hi,
I would like to calculate the lifetime of a product based on the difference between when the product has been released (custom field Launch date) and now.
I was trying to do it with the duration scripted field in scriptrunner but I have an issue :
((System.currentTimeMillis() - customField[14311].getTime())/1000).toLong()
Here is the error message :
groovy.lang.MissingMethodException: No signature of method: com.atlassian.jira.issue.fields.ImmutableCustomField.getAt() is applicable for argument types: (Integer) values: [14311] Possible solutions: getAt(java.lang.String), getId(), getName(), putAt(java.lang.String, java.lang.Object), wait(), grep() at Script101.run(Script101.groovy:1)
Can anyone help ?
Thank you