Showing workflow in 'sub-task' columns

Daisy Zhang March 1, 2012

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.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Daisy Zhang March 18, 2012

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)

Renjith Pillai
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.
October 17, 2012

Then you should atleast vote up Maya's answer :)

0 votes
Maya S Chase
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.
March 1, 2012

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!

Daisy Zhang March 4, 2012

Thank you very much, Maya. However, maybe I did not speak it clearly. Some things i want to do is adding action buttons on the layout generated by IssueTableWebComponent.getHtml(IssueTableLayoutBean layout, List issues, IssuePager pager), which appeared on the sub-task view page.

Maya S Chase
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.
March 4, 2012

Ah, ok. I haven't done this myself, but the closest thing I can suggest is use of the setShowActionColumn method. http://docs.atlassian.com/jira/5.0-m4/index.html?com/atlassian/jira/web/component/IssueTableLayoutBean.html

public void setShowActionColumn(boolean showActionColumn)

That won't get you the buttons, but it will allow the Actions column controls.

TAGS
AUG Leaders

Atlassian Community Events