Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

YouTrack custom defect plugin


#1

Hi everbody,

i’m trying to code a custom defect plugin for YouTrack, which allows to set the “Affected version”.
Has anybody done this already?

Manuel


#2

Hello Manuel,

Thanks for your posting. We have general documentation on how to customize defect plugins available here:

http://docs.gurock.com/testrail-integration/defects-plugins-custom
http://docs.gurock.com/testrail-integration/defects-plugins-examples

This uses Jira as an example but YouTrack should be very similar.

It’s usually a matter of adding the new field to the Push dialog (via ‘prepare_push’), loading the values for the field and returning them to TestRail (‘prepare_field’) and then finally submitting this field to YouTrack (‘push’ and the related method of the API class).

I hope this helps but please let me know in case you have any further questions.

Regards,
Tobias


#3

Hello Tobias,

thank you for the answer. After I understood the “Customizing a defect plugin” documentation and finding the necessary REST call for YouTrack: http://confluence.jetbrains.com/display/YTD5/Apply+Command+to+an+Issue

I resolved it. In the “add_issue” function I first create the new issue, like in your YouTrack defect plugin and then edit it, to set the further values.

Regards
Manuel


#4

Thanks for the feedback, Manuel, sounds good!

Regards,
Tobias