I have two custom fields:
"Job Data" (Date customfield ID=11811)
"Time Spent" (Number field ID =11812)
I would like that to open a task, be made a worklog based on the date placed in the field and the time placed in the "Time Spent" field
Probably want to put this in the Post Function
I do not know if I'm doing it right
I do not have developer profile.
What have i tried so far
import com.atlassian.jira.issue.worklog.WorklogImpl import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.MutableIssue CM = ComponentManager.getInstance() worklogManager = CM.getWorklogManager() CustomField customField = customFieldManager.getCustomFieldObject(11811); worklog = new WorklogImpl( worklogManager, issue, null, issue.reporter.name, issue.summary, issue.getCustomFieldValue(customField), null, null, 1*3600 ) worklogManager.create(issue.reporter, worklog, 0L, false) issue.timeSpent = issue.timeSpent == null ? 1*3600 : issue.timeSpent + 1*3600
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
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