You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
I would like to capture the issue closed date and time to a custom field, I have created the custom field as Date and time picker and added the post function to write the date to the custom field.
I have added the groovy and getting the Close date but its showing as "2 days ago", "1 day ago" and 1 minute ago its not give the data. When i pull the report we are not getting any output in the CSV.
Please find the Groovy script and the custom field value.
import com.atlassian.jira.component.ComponentAccessor
import java.sql.Timestamp
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def dateCf = customFieldManager.getCustomFieldObject("customfield_10104") // Date time fields require a Timestamp
issue.setCustomFieldValue(dateCf, new Timestamp((new Date()).time))
CloseDate | Date Time Picker |
Please find the Screenshot for the same
Can you please help me to solve this issue.
Hi John,
In the CSV we are able to see the date and time, but in the JQL we are seeing only the # of days or mins
So the CSV is good. Did you turn off the Relative dates based on the article above?
Thank you very much, after setting jira.lf.date.relativize = false its showing the Date and time.
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events