java.lang.Object | |
↳ | com.atlassian.jira.issue.util.IssueOperationsBarUtil |
Utility class to help with the creation of the View Issues Ops Bar.
Does a lot of caching (only request scope) as we need constantly need to check the sizes of different lists and it is hard to keep track of a lot of these things in the view layer. Could possibly refactor this in the future to make it more generic to make any Ops bar for any page. E.g Issue NavConstants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | COMMENT_LINK_ID | ||||||||||
String | EDIT_LINK_ID |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets all the groups for the Ops bar - Operations, Transitions, ...
| |||||||||||
Get a display label for a link Shows a maximum of 25 characters.
| |||||||||||
Get a list of sections that contain links that have not be promoted.
| |||||||||||
Get all the links for a section that were not promoted.
| |||||||||||
Gets all the links that have been promoted out of the sub-sections, into the top level.
| |||||||||||
Get the title for the link.
| |||||||||||
Whether we need to display the more link for a group.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets all the groups for the Ops bar - Operations, Transitions, ...
Get a display label for a link Shows a maximum of 25 characters.
link | the link to get the label for. |
---|
Get a list of sections that contain links that have not be promoted.
group | The group to get the sections for. |
---|
Get all the links for a section that were not promoted.
group | The group which section belongs to. |
---|---|
section | The section to get the links for. |
Gets all the links that have been promoted out of the sub-sections, into the top level.
The number of links promoted is determined by the jira-application.properties property: ops.bar.group.size = 2 Though this can be overridden for individual groups: ops.bar.group.size.opsbar-operations = 3group | The group for which these links belong. E.g. opbsbar-operations |
---|
Get the title for the link. If the link label has been abbreviated and there is no set title, use the full label.
link | The link to get the title for. |
---|
Whether we need to display the more link for a group. We display the more link if the group has a a label or if there are more items to show in a drop down.
group | The group to get the label for. |
---|