Dear All,
I am writing a script to display all the issues which are of "Story" issue type in a given project "ABC" but my script is listing all the issues in a project but not getting the list based on the requested issue type.
Below is the script to get the list of issues in given project.
Method-1:
*************
Method-2:
***************
Thanks for Peter for your quick help and you saved me..... The script ran fine and and displays the only stories from the given project.
The result looks like below in the list format..
DocumentIssueImpl[issueKey=ABC-1234], DocumentIssueImpl[issueKey=ABC-2124],DocumentIssueImpl[issueKey=ABC-4212].
Not sure if we can avoid "DocumentIssueImpl from the result and to display 3 to 4 issues per row.
Thanks and Regards,
Ramesh Penuballi
I'm not sure what you are doing this with a script.
You could just search for issues using the UI and export the list.
But if you want to output the listOfIssues in a more friendly way, you can add
return listOfIssues.collect{it.issueKey} //print one long comma separated list
//or
return listOfIssues.collect{it.issueKey}.join('<br>') //print each issue key on a separate line
If you really want to print 3/4 per line, you'll have to come up with your own algorithm for processing the list. There is nothing built-in to groovy to do that as far as I'm aware.
Hi Peter,
Thanks for the sharing the details. I will have a look and update the script accordingly.My script is working as expected..
Once again thanks alot for providing the valuable suggestion.
Thanks,
Ramesh