Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA Core: Activities Section of Ticket: Comments

Lathrop [PSU]
Contributor
July 11, 2011

Is it possible to have the comments, that appear under the activities section of a JIRA ticket, show as "default" collapsed rather than expanded like it is currently?

I didn't see this as an option in the system or general configs. Is there a little piece of code our programmer could tweak?

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
JamieA
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.
July 11, 2011

You could put the following code in the announcement banner. Might need a bit of tweaking... I don't think if you add a comment then that comment should be shown as collapsed but up to you (if you don't want that then don't apply this to the divs with highlighted class):

<script language="Javascript">
AJS.$(document).ready(function() {
AJS.$("div.activity-comment").addClass("collapsed").removeClass("expanded")
});
</script>


Better to write this as a speakeasy plugin and let people use it if they want to.

Lathrop [PSU]
Contributor
July 12, 2011

Thank You for the code! It works perfectly.

TAGS
AUG Leaders

Atlassian Community Events