i want to know if we can get the assignee date of a jira issue and put it into a script field or something similar with Date type.
Our Business need to know when a jira issue has been assigned to someone while making a jql filter.
Many thanks in advance.
You can create a Date Time picker custom field and put below code to capture the time of assignment into that.
This needs to be added as Script Runner custom listener for the event 'Issue Assigned'
def issue = event.issue as Issue
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def datecf1 = customFieldManager.getCustomFieldObject('customfield_xxxxx') //custom field ID
def val = new Timestamp((new Date()).time)
def changeHolder = new DefaultIssueChangeHolder()
datecf1.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(datecf1), val),changeHolder)
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events