Add category to /spend quick action
What does this MR do and why?
A while back we added the concept of timelog categories.
This MR adds the ability to set timelog category using the /spend
quick action.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- From the rails console:
- Enable the
timelog_categories
feature flag. - Create a timelog category:
TimeTracking::TimelogCategory.create!({name: 'Support', namespace: Namespace.find(33)})
- Enable the
- Find or create an issue within that group and log some time with the quick action:
/spend 1h [timecategory:Support]
- Check the timelog from the rails console:
Timelog.last
(you should see thetimelog_category_id
set).
Edited by Ammar Alakkad