PractiTest Discussion Forum

Can you assign Requirements Parent/Child relationship with excel while importing?

I’m trying to import several hundred requirements from an excel sheet, where many of them are child requirements to a single parent item. Is there a way to configure a Parent ID column in the excel sheet to identify which item (by name) is the parent so that they are all hierarchically defined in the Tree View?

I have tried several methods and always get an error of unknown parent id upon attempting to import. I assume it’s because the parent record may not exist fully by the time a child record is being created. I have also tried to batch edit a group of child requirements to assign a single parent, but the parent variable isn’t available in the batch edit screen, so that won’t work.

Having an efficient way to do this would save me tons of time. With over 600 requirements and several hundred being children, manually updating each one would take hours.

Thank you for your time!
Dave

Hello Dave!
You’re correct: the Import function cannot (currently) connect a requirement in the list to another requirement in the list as a parent/child, because the parent still doesn’t have an ID and will have it only after it’s created in PractiTest.
We have a request to enable such a functionality in our Feedback forum, and I highly recommend to upvote it - the more upvotes each request gets, the higher it stands in the priority list of our Product Team for implementation. You can find the request here: Import Jira requirement ticket with all it's sub-tickets – Have an idea? Share it!, feel free to add your comments as well.

Meanwhile, I can offer a solution to update the Requirements with the Parent IDs via our API.
One of the many options our API provides is an ability to update Requirements’ fields values, one of them can be Parent ID.
So the order of actions should be as follows:

  1. Import the whole list of Requirements;
  2. Apply the GET request on the imported Requirements: Full API Documentation (Version 2) - PractiTest
    (if these aren’t the only Requirements in the project, you can create a Filter which will contain only those you imported - for example, per Created Date Criteria, and use this Filter as a parameter). Retrieve the IDs of Requirements from there:
  3. Apply PUT requests on Requirements which supposed to have Parents per their IDs: Full API Documentation (Version 2) - PractiTest

Another solution you might consider (though I assumed you considered that already):

  1. Import only Requirements that do not have Parents;
  2. Create a Report (for example, Tabular Summary Report) for the newly imported Requirements, where you can retrieve their IDs
  3. Import the remaining Requirements, filling the Parent column with respective ID of each parent.

I can elaborate on both solutions, if any of the steps is unclear.

Please let me know if it helped!

Alex from PractiTest team.

P.S. For more questions, and adjustments of our product to your specific use case, I’d highly recommend to schedule a demo session with our Customer Success Manager, you can do it via this link: Calendly - PractiTest

1 Like

Thank you for the thorough and useful response, Alex. I appreciate it. I will upvote the feature request and look into the Put/Get option. I had considered the second option but hadn’t tried it yet as I wanted to wait for a response to my inquiry, though that option will certainly be easier than manually updating each child requirement.

Thanks again and I will reach out if I have any questions on the options you provided.

Dave