Class DecisionList

  • All Implemented Interfaces:
    Element, Node, ContentNode<DecisionList,​DecisionItem>, DocContent, LayoutColumnContent, NonNestableBlockContent, TableCellContent

    @Documentation(state=UNDOCUMENTED,
                   date="2023-07-26")
    public class DecisionList
    extends AbstractContentNode<DecisionList,​DecisionItem>
    implements DocContent, LayoutColumnContent, NonNestableBlockContent, TableCellContent
    Decision lists provide lists that look much like a bulletList, but they cannot be nested and there are differences in their visual representation. The decision items also require identifier strings that can be used to associate them with information in other systems.

    Note: Jira does not currently support decision lists.

    Example

    Java

    doc( p("Hello"), decisionList( "decision-list-id", decisionItem() .localId("item-test-id") .decided() .content("Start using Document Format for apps") ), p("World") );

    ADF

    
      {
        "type": "doc",
        "version": 1,
        "content": [
          {
            "type": "paragraph",
            "content": [
              {
                "type": "text",
                "text": "Hello"
              }
            ]
          },
          {
            "type": "decisionList",
            "attrs": {
              "localId": "decision-list-id"
            },
            "content": [
              {
                "type": "decisionItem",
                "attrs": {
                  "localId": "item-test-id",
                  "state": "DECIDED"
                },
                "content": [
                  {
                    "type": "text",
                    "text": "Start using Document Format for apps"
                  }
                ]
              }
            ]
          },
          {
            "type": "paragraph",
            "content": [
              {
                "type": "text",
                "text": "World"
              }
            ]
          }
        ]
      }
     

    Result

    Hello

    1. Start using Document Format for apps

    World

    Note: This example output is not using AtlasKit to render the decision list, so while it gives a vague impression of what a "decision list" is, it does not faithfully reproduce the actual presentation in Atlassian products.