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

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 vote
Timothy Chin Community Champion Jun 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.

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 Chin Community Champion Jun 13, 2014

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

OK,
Thanks Timothi!

I will live with that...

:)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

149 views 1 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you