Opened 5 years ago

Closed 5 years ago

# tracing of (requirement) tickets at test cases

Reported by: Owned by: podskalsky seccanj normal TestManagerForTracPlugin normal 0.12

### Description

It would be fine to have a tracing of testcases to tickets like requirements or enhancements.

At the ticket we want to see if there is one or more a testcase which was created depending on it.

At the testcase we want to see if there is one ore more tickets depending on it.

### comment:1 Changed 5 years ago by seccanj

Hi Andreas, the plugin already has linking tickets to test cases and vice versa.

Is this what you were looking for?

Ciao, Roberto

### comment:2 Changed 5 years ago by podskalsky

Your "Linking a Ticket to a Test Case" is great for writing defect tickets when we find an error during testing.

But we have existing tickets which we want to link to the testcase during creation of that testcase.

Our usecase: 1) someone is writing a feature description to ticket #12345 (ticket type "feature" or "requirement") 2) the tester will write a testcase which depends on that ticket #12345 and maybe more tickets

### comment:3 Changed 5 years ago by seccanj

Hi Andreas, I seem to remember this was just implemented, so I checked and yes I was right :D

As you can see from the attached screenshot, the TestManagerPlugin already adds a couple of custom ticket fields for recording the Terst Case and optionally the Test Plan associated to a Ticket.

These fields are automatically filled when opening a ticket from a test case, but in your case you can simply fill them manually.

You can then use the XML-RPC apis to query test cases related to tickets or vice-versa.

If you want to have a hyperlink in the ticket text itself (for example in a comment), just add it following the format used by the "Open a ticket on this test case" button, which is for example:

[wiki:TC_TT0_TC1]


where TC_TT0_TC1 is the test case wiki page name.

LEt me know if this is OK.

Ciao, Roberto

### comment:4 Changed 5 years ago by seccanj

Just to better clarify the answer, since your requirement is to be able to see the tickets related to a test case, of course you can do it by using the "Show related tickets" button on the test case page.

This only works if you actually add the test case wiki page name in the ticket description, as in:

[wiki:TC_TT0_TC1]


Hope this clarifies better.

Ciao, Roberto

### comment:5 Changed 5 years ago by seccanj

• Resolution set to fixed
• Status changed from new to closed

### comment:6 Changed 5 years ago by podskalsky

Thanks for your great support !