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

This widget could not be displayed.
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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

289 views 1 4
Join discussion

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