dixudx / rtcclient

RTCClient for Rational Team Concert
https://readthedocs.org/projects/rtcclient/
Apache License 2.0
37 stars 44 forks source link

Is that possible to get Git Commit from RTC just like getting ChangeSet? #127

Open LusongHou opened 4 years ago

LusongHou commented 4 years ago

As we know, RTC support to work with Git, and it also support to create the link to Git commit in RTC. accordingly, is that possible to get the Git commit just like getting RTC change sets via this API?

dixudx commented 4 years ago

is that possible to get the Git commit just like getting RTC change sets via this API?

@LusongHou i guess it is is feasible.

But currently I don't have bandwidth to implement this feature. Would you like to contribute to this?

fignutz commented 4 years ago

@LusongHou This is possible. I commented on how to do this in another thread. All you should have to do is add the phrase git to the array in my example. This will return field_aliases based off of the following items in CCM (RTC version 6.0.6.1):

'gitCommit_gitcommit':rtc_cm:com.ibm.team.git.workitem.linktype.gitCommit.gitcommit'
'gitIssue_gitIssue': 'rtc_cm:com.ibm.team.git.workitem.linktype.gitIssue.gitIssue'
'gitMergeRequest_gitMergeRequest':'rtc_cm:com.ibm.team.git.workitem.linktype.gitMergeRequest.gitMergeRequest'