Hi,
When we do a TFS check-in, is it possible to make a JIRA issue key mandatory in the check-in comment?
The goal is to not allow a TFS check-in if the JIRA issue key is missing in the check-in comment.
Thank you.
- Saurabh
Hi,
If you use our check-in policy then it is mandatory to associate check-in with JIRA. However by design TFS allows to override policy warning (in fact allowing to bypass it) but you can set up e-mail notification on such events (see here for example http://www.woodwardweb.com/vsts/policy_override.html )
When we do a TFS check-in, UseTFS shows JIRA issues to choose from, right, to associate one with the current check-in? Does it show all the JIRA issues or only the ones assigned to the person checking in (preferable)? Does UseTFS use any other filters like the status of JIRA issues e.g. showing only the ones that are not closed?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UseTFS allows users to either access their filters that are saved in JIRA or directly write JQL query (unfortunatelly without those nice suggestions that you get using JIRA web interface).
Also you can filter and sort the results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Andrzej. When we add Jira issue key (e.g. JIRA-1234) to either check-in comment or check-in notes, does 'UseTFS Jira plugin' check if that JIRA issue key exists i.e. JIRA-1234 is a valid JIRA issue and not a random string?
If it doesn't, then does 'UseTFS check-in policy' component enforce that?
In UseTFS - check-in policy video, the user checks one of the four checkboxes to associate a JIRA issue with the code change. What happens if we don’t check any?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi engg,
In Subversion you can add some scripts that are executed every time a user uploads some code (commit), called hooks. In these hooks you can enforce that the user fills the comment, references a JIRA issue, all methods are documented, whatever ... or the hook raises an error that prevents the commit.
But this is more related to the subversion management (TFS in your case) than jira nor subversion plugin. As far I understand, this is out of the useTFS plugin scope (preventing checkin), but in the TFS. Does TFS have some way to call a script or external program to allow or disallow a code check-in?
if yes, you can write a simple java program that access Jira and checks if all keys mentioned in the comment exists as issue Key.
Edit: Ive deleted this answer few minutes after posting, because just noticed that TFS has something called 'checkin policies' and really I dont know anything about TFS except by comparing with SVN, so I thought that this answer wasn't really helpful.
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Andrzej,
When we do a TFS check-in, UseTFS shows JIRA issues to choose from, right, to associate one with the current check-in? Does it show all the JIRA issues or only the ones assigned to the person checking in (preferable)? Does UseTFS use any other filters like the status of JIRA issues e.g. showing only the ones that are not closed?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Andrzej. I will look into it.
Also, Alex Perez's comment is not visible here. Alex, your answer is helpful too. I will explore wriiting a hook in TFS to achieve this.
The other goal is to view TFS check-ins from Jira web UI. Is this possible without using a plug-in like UseTFS or TFS4JIRA?
Thanks.
I wanted to leave the question open, but in an attempt to see Alex Perez's comment here, somehow Andrzej's answer got accepted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi engg,
In Subversion you can add some scripts that are executed every time a user uploads some code (commit), called hooks. In these hooks you can enforce that the user fills the comment, references a JIRA issue, all methods are documented, whatever ... or the hook raises an error that prevents the commit.
But this is more related to the subversion management (TFS in your case) than jira nor subversion plugin. As far I understand, this is out of the useTFS plugin scope (preventing checkin), but in the TFS. Does TFS have some way to call a script or external program to allow or disallow a code check-in?
if yes, you can write a simple java program that access Jira and checks if all keys mentioned in the comment exists as issue Key.
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.