Im trying to make a powershell script that retrieves a value from our Jira website using Invoke-WebRequest. So far i tried this, without success:
$URI = "https://jira-marine.johnsoncontrols.com/browse/MST-3846"
#$URI = "https://superwidgets.wordpress.com/category/sql/"
$HTML = Invoke-WebRequest -Uri $URI
#$HTML.ParsedHtml | Get-Member
$HTML.ParsedHtml.getElementById('customfield_23231-val').value
#$HTML.ParsedHtml.getElementsByTagName('('customfield_23231')
($HTML.ParsedHtml.getElementsByTagName('input') | Where{ $_.className -eq 'customfield_23231'}).innerText
#($HTML.ParsedHtml.getElementsByTagName('h2') | Where{ $_.className -eq 'entry-title'}).innerText
I've included a screenshot from the websites DOM, how do I get that value (664597)? Is it a issue with access to the page, as it require login?