You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pushing changes for a jira issue, sometimes engineers push changes for stories that are already closed or not pulled into the active sprint.
Reasons for issue status validation:
Just being humans. engineers might have forgotten to put their story in the correct status.
Someone else closed your story e.g. your product owner but you aren't aware.
Someone pulled the story out of your active backlog/sprint as a result of prioritisation.
Process requirements within your organisation to follow certain workflows based on jira issue status.
Proposal
I propose introducing two new inputs into jira-lint.
validate_issue_status
This should enable validation of jira issue status. By default this validation should be off.
allowed_issue_statuses
This should be used in conjunction with validate_issue_status. When validate_issue_status is true, the allowed_issue_Statuses should be uses as a list of acceptable jira issue statuses provided by the consumer of jira-lint. If validation is enabled, jira-lint should compare the current status of the detected issue with the allowed_issue_statuses. If no match is found then jira-lint should fail the status check and put a comment on the PR with what is wrong.
Example comment when status validation fails
💔 The detected issue is not in one of the allowed statuses 💔
Detected Status
Done
❌
Allowed Statuses
In-Progress,In-Review
✔️
Please ensure your jira story is in one of the allowed statuses
The text was updated successfully, but these errors were encountered:
Description
When pushing changes for a jira issue, sometimes engineers push changes for stories that are already closed or not pulled into the active sprint.
Reasons for issue status validation:
Proposal
I propose introducing two new inputs into
jira-lint
.validate_issue_status
This should enable validation of jira issue status. By default this validation should be off.
allowed_issue_statuses
This should be used in conjunction with
validate_issue_status
. Whenvalidate_issue_status
istrue
, the allowed_issue_Statuses should be uses as a list of acceptable jira issue statuses provided by the consumer ofjira-lint
. If validation is enabled,jira-lint
should compare the current status of the detected issue with theallowed_issue_statuses
. If no match is found thenjira-lint
should fail the status check and put a comment on the PR with what is wrong.Example comment when status validation fails
💔 The detected issue is not in one of the allowed statuses 💔
Please ensure your jira story is in one of the allowed statuses
The text was updated successfully, but these errors were encountered: