Configure the Project Keys field, on Issue Tracker page, for Bugzilla
I am trying to connect TeamCity (Version 10574) to our Bugzilla site. Most of the fields are pretty self explanatory, but I cannot figure out what I should be putting the Project Keys field. Could someone, who is using Bugzilla, please give me an example of their Issue Tracker settings? I have hunted and hunted online, but I cannot find any examples.
Please sign in to leave a comment.
Hi Stephen,
The 'Project Keys' label is present if you configure a Jira connection, not Bugzilla. Could you please attach a screenshot of the dialog?
---
Maxim
Here is a screenshot of the dialog box. I am in Administration / Server Configuration / Issue Tracker. This is in build 10574.
Thank you for your response.
Attachment(s):
IssueTracker.jpg
Stephen,
The field 'Issue Id Pattern' means the pattern to be used to extract issues from the comments, e.g. #(\d+) will extract two issues: "A fix for #12345 and #98765".
---
Maxim
I am not sure if I follow you. Here is an example of one of our Subversion check in comments:
Why wasn't this committed with the rest? Issue #: 4655
What would I need to put in there, in order to pick this up? What if there were two bugs referenced in a comment, like this:
Moving files to optional for Ron to include in 6.1.0 SP11 HF01 due to the length of time it takes to run. Issue #: 4231 4675
Well, in this case you can try to match the issue as a 4-digit number. This may overlap with ordinary 4-digit numbers from the comment, but there's no option to search for issue references after certain substring.
---
Maxim
So does it just require standard regular expressions? So I need to use /d{4} to find a 4 digit number?
Yes, it is a plain regular expression, but it should contain one group.
(\d{4}) should work for you, if I'm not mistaken.
You can go further and allow the previous character to be only whitespace or colon.
---
Maxim
Ok. Thank you very much. This answers all my questions about the Issue Tracking. I got it working now.