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

[Defect Plugin] Is it possible to change the push dialog?


#1

Hi,

I try to implement a defect plugin with redline.
I would like to add some custom field dynamically according to the user’s selection on trackers.
for example:
if user choose Bug tracker, then the dialog shows priority, version, for user to select.
if user choose Support tracker, then the dialog shows status, for user to select.

Thanks.


#2

Hello Alston,

Thanks for your posting. It is possible to customize the push dialog but it wouldn’t be supported to show/hide fields dynamically based on the selection of another field at this point. It is possible, however, to dynamically load field values in this case and the documentation for customizing the push dialog can be found here:

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

I hope this helps!

Regards,
Tobias


#3

[quote=tgurock]Hello Alston,

Thanks for your posting. It is possible to customize the push dialog but it wouldn’t be supported to show/hide fields dynamically based on the selection of another field at this point. It is possible, however, to dynamically load field values in this case and the documentation for customizing the push dialog can be found here:

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

I hope this helps!

Regards,
Tobias[/quote]

Hi tgurock,

Thanks for your reply.
We have a lot of custom fields in our system.
It would be impossible for our employee to choose which custom fields should be filled according to different trackers from all of the custom fields. That’s why I am trying to dynamically change the fields according to the selected tracker.
I found that it seems that I could make this happen through the custom script?
I am still trying this.
Thanks.

Alston


#4

Hello Alston,

Thanks for the additional details. You could mark the fields as Bug or Support fields (e.g. adding this to the field name) but I’m not sure if this option would work for you. Dynamically changing the displayed fields (based on the selection of another field) is currently not supported by the defect plugin “framework” and it wouldn’t be supported to add this just by modifying the defect plugin itself. What you can do, however, is to dynamically load field values when another field changes and this is explained here (see the “cascading” and “depends_on” options):

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

Regards,
Tobias