I have added this small script to the Sub Bug_New:
On Error Resume Next
Bug_Fields("BG_DESCRIPTION").value = _
"<html><body><b>Summary:</b>" & _
"<br> <br> <br><b>Short description:</b></body></html>" & _
"<br> <br> <br><b>Ref. to doc.:</b></body></html>" & _
"<br> <br> <br><b>HTR:</b></body></html>" & _
"<br>1) <br>2) <br>3) </body></html>" & _
"<br> <br> <br><b>See also:</b><br> <br> <br></body></html>"
On Error GoTo 0
It works fine, but when a tester reports a defect, the text from the step which failed is not placed in the description field in the defect module - only the above shown html. Is it possible to get both the html and the text from the failed step in the description field, when reporting a defect?
We had the same issue due to prior coders:
You need an IF statement to check if the BG_DESCRIPTION field is blank/Null before entering the HTML version.
Then you can mess around with what shows up and in what order.
While I have been working for Businesses that are Vendor partners with HP, IBM and Microsoft, my opinions and advice is my own.
The solutions provided are either sourced from my own scripting libraries or from a quick Google Search.