Daisy asked this question · 66 karma · Mar 02 '12 at 04:32 AM
I have got a new requirement that is we need show workflow operations in 'sub-task' columns. Any one who can give some hints on this? Thanks a lot.
I get this resolved by adding the below code. It works at jira3.13.5. Thanks Maya for your answering.
final SubTaskColumnLayoutFactory subTaskColumnLayoutFactory = (SubTaskColumnLayoutFactory)ComponentManager.getComponentInstanceOfType(SubTaskColumnLayoutFactory.class); final ColumnLayoutItem workflowLinks = subTaskColumnLayoutFactory.getSubTaskWorkflowLinksColumn(searchUser, currentIssue); layoutBean.getColumns().add(workflowLinks); //make sure here issueObjects is a list of MutableIssue not Issue new IssueTableWebComponent().getHtml(layoutBean, issueObjects, searchResultsPager)
This is part of what you need: http://jira.wordpress.com/2008/12/08/showing-custom-fields-in-sub-task-columns/
That will get you the additional columns in the sub-task display.
As for how to display the operations (action button?) there, hopefully someone else has an idea on that. Good luck!