Hi there,
I need to set a specific value on a custom field within some linked issues but not all of them.
I'm using the 'Set field value of related issues (JMWE app)' Post Function and am using the 'Issues Returned by the following Groovy script' option to find the specific related issues that I require updated.
From the research I've carried out to date the following syntax returns a list of all of the related issues
issue.getLinkedIssues()
And these are the results:
Result type:
<a href="http://las7jira151:8080/secure/admin/workflows/AddWorkflowTransitionFunctionParams!default.jspa?workflowName=CTS-Roadmap-Design-V1.0&workflowMode=draft&descriptorTab=postfunctions&workflowStep=12&workflowTransition=381&pluginModuleKey=com.innovalog.jmwe.jira-misc-workflow-extensions%3ASetFieldValueOfLinkedIssues-function&atl_token=BT58-9F7U-W7KK-JHZW_bcd23dc630b5c98e7d2c203e1011a6bd9d8eb3e4_lin#" target="_blank" rel="nofollow noopener noreferrer">ArrayList</a>
Result value:
[Test-250, Test-249]
So this gives me all the related links which is great but I need to break that down further and only have the 'Result Value = Test-249' and not just list all of the related issues.
Is this doable? Does anyone have the correct syntax to use in this scenario?
Any help appreciated...
Thanks