How do I attach Revisions to a Bug or UserStory via REST?

59 views
Skip to first unread message

Scott Palmer

unread,
May 21, 2013, 10:06:05 AM5/21/13
to devtarge...@googlegroups.com
I can create the new Revision, I can link RevisionFiles to it, etc.  I don't know how to make Revisions show up on the "Source" tab of the issue like they do for revisions added with the Subversion plugin for example.  (I'm writing a Mercurial changegroup hook to push updates to TP.)

Thanks,

Scott

Scott Palmer

unread,
May 21, 2013, 10:40:27 AM5/21/13
to devtarge...@googlegroups.com
I should mention that I attempted to post a Revision that included a list of Assignables (specifying only the Id), but the Revision still doesn't show up on the UserStory.  E.g. for UserStory  #29659, which is part of Project #3481, I post this Revison


<Revision>
    <SourceControlId>c55088c534d0</SourceControlId>
    <CommitDate>2013-05-21 10:33:21 -0400</CommitDate>
    <Project Id="3481" Name="My Project"/>
    <Author Id="11">
        <FirstName>Scott</FirstName>
        <LastName>Palmer</LastName>
    </Author>
    <Assignables>
        <Assignable Id="29659"/>
    </Assignables>
</Revision>

The post succeeds, but the Source tab for UserStory #29659 is still empty.

Regards,

Scott

Scott Palmer

unread,
May 23, 2013, 9:14:09 AM5/23/13
to devtarge...@googlegroups.com
Just a note as to if this is possible or not would be helpful.
We are running Build 2.23.15.23336 / 25-Jan-2013


Scott

On Tuesday, May 21, 2013 10:06:05 AM UTC-4, Scott Palmer wrote:

Scott Palmer

unread,
May 27, 2013, 8:41:55 AM5/27/13
to devtarge...@googlegroups.com
Nobody from TP even knows if this is possible?????


Scott

On Tuesday, May 21, 2013 10:06:05 AM UTC-4, Scott Palmer wrote:

Sergey Gnedin

unread,
May 29, 2013, 7:24:17 AM5/29/13
to devtarge...@googlegroups.com
Hi Scott,

I apologize for the late reply.

The answer to your question is "No, it is not possible in 2.23.15".
However, we agree it would be a nice addition to existing REST functionality. So, we have discussed that with management and decided to include it to our next build - 2.24.1 that is expected in about a week. 

Best Regards,
Sergey.

Don Irwin

unread,
Apr 26, 2015, 2:19:36 PM4/26/15
to devtarge...@googlegroups.com
Is this possible with REST API for the online version of TP?

julia.k...@targetprocess.com

unread,
May 27, 2015, 6:12:47 AM5/27/15
to devtarge...@googlegroups.com
Attaching Revisions to Assignables is possible starting the version 3.7.1:
Reply all
Reply to author
Forward
0 new messages