You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I would like to know the Custom script post-function allows to update a custom date field (dd/mm/yyyy) with the current transition date.
I have tried few codes but non of them works.
using ScriptRunner 5.1.6
Thanks in advance.
i used this script :
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def dateCf = customFieldManager.getCustomFieldObject("customfield_12345") // Date time fields require a Timestamp
issue.setCustomFieldValue(dateCf, new Timestamp((new Date()).time))
thanks for this document: https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/postfunctions/set-issue-attributes.html
Hi Raphael ,
i am searching for the same but here i need to capture the date while i click on new transition for every transition i need to pick the date. And when i ever i click on new transition i need to capture the date . Please guide me through the steps and hoe to implement this.
for your example and for better understanding: it should be like in the history user changed from this to this on this date like that
please help me to achieve this and come out from this.
thanks in advance!