Hi, I really need your heeelp,
I need to change the status of an issue if following condition is true:
I have a linked Issue of type "Is Reviewed by"
linkedIssue status = close
and linkedIssue resolution = done
I know I have to use a fast track function to change the status but for the condition I have an error, What I'm doing:
issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains('is reviewed by')
linkedIssues.getAsString("status") == ["Closed"]
linkedIssues.getAsString("resolution")==["Done"]
'linkedissues' is not recognized.
Shouldn't you write
def linkedIssues = issueLinkManager.getOutwardLinks(...
linkedIssues.getAsString(...
?
Hi Marc, thx!! I've tried:
def LinkedIssues = issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains('Is Reviewed by')
LinkedIssues.getAsString('Status') = 'Closed'
LinkedIssues.getAsString('Resolution') ='Done'
But I had: "LinkedIssues.getAsString('Status')" is a method call expression, but it should be a variable expression
:/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I did not look in detaat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I did not look in detail at your code.
You should loop over the linkedIssues, and test for each issue :
...
linkedIssue.getStatus().getName() == 'Closed'
linkedIssue.getResolution().getName() == 'Done'
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.