How to create issues and its sub-issue "in transaction"?

Jan Krystof June 12, 2014

Hi,

I need to create valid issue and it's subissue. However, in order to validatea sub-issue I need to provide it's parent ID (I am using

issueService.validateSubTaskCreate

). Problem is, that the parent issues has not been created yet: I want to create parent issues as soon as I know, that validation procedure for sub-issue will succeed. So I want to work within a kind of transaction.

Thanks for any hints!

:)

Jan

1 answer

1 accepted

0 votes
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2014

Problem is, that the parent issues has not been created yet

This is your catch 22 then. You cannot create a sub task if you don't have the parent task.

Jan Krystof June 12, 2014

Timothi, I understand that.

My question actually was, whether I can validate creation of issue "P" with children "C1" and "C2". I have all parameters (summary, issuetype, etc.) needed for creation P, C1 and C2.

Thanks

Jan

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2014

Nope. Cause C1, C2, ... needs a valid P issue id/key.

Jan Krystof June 23, 2014

OK,
Thanks Timothi!

I will live with that...

:)

Suggest an answer

Log in or Sign up to answer