How to validate a custom field in Bugzilla via REST Call to Redmine?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to validate a custom field in Bugzilla via REST Call to Redmine?

ashaletha.ab
Hi,

I have been using a custom field "Redmine#" in Bugzilla to track the bugs caused by a particular development activity. Made this custom field mandatory and then users started entering some junk values to this field.

How do I validate the Redmine Number entered before submitting the bug report?
I am using Bugzilla version 5.0.3. Read that it supports hooks.
Can the hook call a REST URL (of the Redmine) for validating the Redmine number before creating the bug? Is the hook named "bug_end_of_create_validators" the one to be used for this purpose?
Can anyone please point me to some links with sample code for calling REST API from the bugzilla hooks, if such a feature exists?


Thanks & Regards,
Asha.
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.