Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting the current date and time when changing status

Jhon Collin P. Asagra March 15, 2018

I would like to get the current date and time when changing status, like when the Agents assigned the ticket, assigned date and time is also captured.

I think I can achieve this through post function scripting of field, however I am not familiar with it. I am hoping someone can help me. 

Thank you in advance!

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2018

What plugin do you have for scripting? If you can write a groovy script in your plugin, you can just write 

def date = new Date()
Jhon Collin P. Asagra March 21, 2018

Thank you for your help. I am using ScriptRunner. How can I set the custom field value to the captured current date and time? :)

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2018

you can read my article here. I described three ways to update an issue

https://community.atlassian.com/t5/Agile-articles/Three-ways-to-update-an-issue-in-Jira-Java-Api/ba-p/736585

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events