Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Adding comment on behalf of another user

I'm wondering if this is possible. We are using SVN as our SCM system, since we are evaluating RTC. I've written a post-commit hook for SVN which will add your svn revision with a link to the diff to the work item you were working on. The post-commit hook will also add your SVN commit message to your work item as a new comment. Currently, this comment is being added by a user that is only being used for this sort of automatic thing. I was curious if it would be possible to still login as this user, but, have the comment be added on behalf of another user. So, for instance, if I committed to SVN, my work item would get a comment with my svn commit message and the comment would appear to have been added by me.

I'm looking at https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Adding_a_Comment_to_a_Work_Item and in the example of reading a comment, it has the creator field. Can I set that when I add the comment? If so -- how would I get the rdf:resource URI given just the username of the user? Thanks for any help.

0 votes



One answer

Permanent link
I'm wondering if this is possible. We are using SVN as our SCM
system, since we are evaluating RTC. I've written a post-commit hook
for SVN which will add your svn revision with a link to the diff to
the work item you were working on. The post-commit hook will also
add your SVN commit message to your work item as a new comment.
Currently, this comment is being added by a user that is only being
used for this sort of automatic thing. I was curious if it would be
possible to still login as this user, but, have the comment be added
on behalf of another user. So, for instance, if I committed to SVN,
my work item would get a comment with my svn commit message and the
comment would appear to have been added by me.

I'm looking at
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Adding_a_Comment_to_a_Work_Item
and in the example of reading a comment, it has the creator field.
Can I set that when I add the comment? If so -- how would I get the
rdf:resource URI given just the username of the user? Thanks for any

The Java API allows you to set the creator of a comment. I have recently
created
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/105948
to allow the same in the HTTP API.

--
Regards,
Patrick
Jazz Work Item Team

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Feb 07 '10, 10:46 p.m.

Question was seen: 5,768 times

Last updated: Feb 07 '10, 10:46 p.m.

Confirmation Cancel Confirm