validating the workitem status to allow changeset from git while push
Hi,
I had integrated the GIT and RTC successfully. Now I can able to push the code and associate workitems as change sets for each commit with the comment. Now I need 2 things to validate
1) Before adding changeset to workitem need to validate workitem status. If workitem is INPROGRESS or assigned then changesets has to allow with our git push
2) Need to validate before push for workitem owner. If the owner is adding the changeset to workitem then only git commit/push allow to create the change set for workitem.
How I can achieve this validate with our integration?
I tried to see in python scripts but nothing much I can do there for validation or associateworkitems phyton scripts.
Does anyone have any idea how to implement it.
Thanks,
I had integrated the GIT and RTC successfully. Now I can able to push the code and associate workitems as change sets for each commit with the comment. Now I need 2 things to validate
1) Before adding changeset to workitem need to validate workitem status. If workitem is INPROGRESS or assigned then changesets has to allow with our git push
2) Need to validate before push for workitem owner. If the owner is adding the changeset to workitem then only git commit/push allow to create the change set for workitem.
How I can achieve this validate with our integration?
I tried to see in python scripts but nothing much I can do there for validation or associateworkitems phyton scripts.
Does anyone have any idea how to implement it.
Thanks,
One answer
Have you looked at the preconditions in the operational behavior of RTC?
Comments
If you need more functionality you would have to write your own advisor. You could look into the existing ones and maybe code up your own. See https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ for some hints.