Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve all issue links specified during workflow transition

Andrew L
Contributor
May 15, 2018

Hi

In the "Resolve Issue" screen, when the user enters the issues in the "Issue" field:

snapshot.jpg

my Custom script validator (ScriptRunner) Groovy code only picks up the first bug speciified (ex: PRJ-1)

 def request = webwork.action.ActionContext.getRequest()
 def linkedIssueString = request.getParameter('issuelinks-issues')       
 log.debug(String.format('linkedIssueString is [%s]', linkedIssueString))

The log files show:

linkedIssueString is [PRJ-1]

Can someone please let me know how i can access all issues specified (ex: PRJ-1 and PRJ-2)?

--OR--

How can i restrict the UI to allow the user to specify only just one Jira issue?

Thanks

--Andrew

 

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2018

Try to use

def linkedIssueString = request.getParameterValues("issuelinks-issues");

Andrew L
Contributor
May 15, 2018

Thanks, Alexey.

That works!

 

Thanks

--Andrew

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events