Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA: How to change customfield type from Date Time Picker to Date Picker

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,

1 answer

0 votes

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 ?

There is no "time only" type field, so no, not unless you find or write a plugin to provide one.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

262 views 13 14
View question

Community Events

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

Events near you