Inspecting and Copying the Query Selector
Referencing the query selector of an element from the DOM can be complicated. Why not copy the query selector straight from the page instead?
Instructions
Right-click on the element on the issue UI.
Click on "Inspect".
The DOM will automatically open up and highlight the element in the JavaScript console.
Select and click on the parent element.
Hover over "Copy", then click on "Copy selector".
The query selector changes between the view and edit screens. Copy the query selectors for both.
Â
In the view screen, the query selector copied from the "textField" custom field is: #rowForcustomfield_10301 |
Do the same fore the Edit view:
Â
In the edit screen, the query selector copied from the "textField" custom field is: #qf-field-customfield_10301 |
Hiding and Disabling Custom Fields Based on Selection
Main Script
lfInstantHook("issueType", "LiveFields/hook.sil");
lfWatch("issueType", "issueType", "LiveFields/hook.sil"); |
Hook Script
show.js
hide.js
Â
 Additional Help
Need help implementing this script? Talk to me directly to me by clicking on the bot on this page.
Related articles
Filter by label
There are no items with the selected labels at this time.