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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I need to change a customfield type from Date Time Picker to Date Picker. Is there any SQL to achieve this change?
Thanks in advance,
Stop JIRA and back it up (as any change to a database can render it unusable, I always urge caution)
Go into the database and find the customfield table. In there, you'll find all the custom fields, so find the one you want and look for its type entry - this will have a class name in it, that includes "datetime". Find a date-only field and check what the class for that is (it will be similar and obvious)
Update the classname for the target field to be the same as the plain date picker.
Now, the thing I don't know is the effect on the data. JIRA stores both types of field as a date and time stamp. For date only fields, the time part is always 00:00:00.000. I do not know if you need to update customfieldvalue to strip out all the times currently stored on each existing field.
When you've finished with the SQL, restart JIRA and immediately run a full re-index, locking the system when you do it.
Is there a way to change a Date time field to time only field or just have a new Time only picker field(24hr format) in JIRA service desk ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no "time only" type field, so no, not unless you find or write a plugin to provide one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.