by marcus_holmes · 3y ago · 0 comments
I would love to see Jira state somehow derived from the state of the codebase. Tickets get marked complete when they are actually complete in the code, with tests and documentation and everything, because the ticket state is derived from the code state.
The code, or the repo, however are in most cases not the source of truth for a business roadmap, prioritisation discussions, estimation, customer feedback, bug reports, and so on.
It's a myopic view to only look at the code without any of its context and conclude that it's "the" source of truth.
Also, I don't know about you, but most places I've worked haven't struggled with keeping the code and JIRA in sync.
You can't do that based of the code because the code is limited to its content. How do you track everything that isn't in it ? (requirements, relation with other teams, delivery to customer, customer tickets,...)
Say you have some code that needs some changes but at a later time, you can put a comment above it (or really anywhere)
// JIRA: MYPROJ-123
When the glue sees that comment disappear from the codebase, it can mark the ticket as done.
The thing I'd like to see is that ticket "Write the login page" is automatically marked complete when the codebase contains a working login page, there are unit and integration tests for the login page, and maybe (depending on how you do your documentation) a set of comments on the API methods involved describing their use in the login process. All without those code elements ever needing to know the ticket exists.
The project management system is the view.
The model shouldn't have to change to accomodate the view.