Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It will not let me set valid jira issue with underscore in name #61

Open
bytebeast opened this issue Apr 27, 2022 · 1 comment
Open

Comments

@bytebeast
Copy link

It works for most jira issues, like:

 PROJ1-23424

But if the jira issue is like:

BIZ_PROJ2-2342 

It will not let me set that jira id. My guess it does not like the underscore in the jira issue. Any way to allow an underscore in the name?

@juliuscc
Copy link
Collaborator

I was under the (now I know incorrect) impression that a Jira issue always had to be [A-Z]+-[0-9]+ but I was clearly wrong. According to this documentation page, you can also have numbers and underscores in the "project key". The first letter has to be an uppercase letter but the rest can be any combination of uppercase letters, numbers, and underscores.

Thanks for raising this issue and educating me about how JIRA works! 😁

We have a regex in two places (one for validation and one for detecting a JIRA-ticket-id in the branch name) that should be changed.

Would you (@bytebeast) be able to write a PR that updates these regexes and includes tests? I don't think we need to update any documentation for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants