Message banners for pages
- Li Xuan Liew (Deactivated)
- Robert Alexander Marshall
Owned by Li Xuan Liew (Deactivated)
Â
Use Scaffolding Forms & Templates app Live Template feature to easily implement these banners across all pages.
Current state of page
Features the current workflow state name as well as the date of the last state change.
Source code - current state
<ac:structured-macro ac:macro-id="f53cf898-f265-4da6-ab00-19e1a7ca642e" ac:name="report-block" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="ee7528b1-247f-4c6f-bd8d-b5bc5971c61a" ac:name="local-reporter" ac:schema-version="1">
<ac:parameter ac:name="">@self</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="deb6b5eb-3fde-475d-a101-f2ea97bf49a8" ac:name="text-filter" ac:schema-version="1">
<ac:parameter ac:name="value">Approved</ac:parameter>
<ac:parameter ac:name="">workflow:state>name</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="96458537-f3af-4c27-acd3-b5e85ec74d6c" ac:name="report-body" ac:schema-version="1">
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="11157bce-50ac-41a0-b286-9e3348c12814" ac:name="report-on" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">workflow:state</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="5920f30b-2378-44ec-b84c-9b6778fec2f8" ac:name="report-eval" ac:schema-version="1">
<ac:parameter ac:name="default">0</ac:parameter>
<ac:parameter ac:name="hidden">true</ac:parameter>
<ac:parameter ac:name="format">#,0</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">days-ago</ac:parameter>
<ac:plain-text-body><![CDATA[(%global:current date>date:milliseconds% - %date>date:milliseconds%)/1000/60/60/24]]></ac:plain-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="cb5cd5f1-c9be-4b1d-be6f-32c440165022" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#FCF8F7</ac:parameter>
<ac:rich-text-body>
<p> This page is <strong> <ac:structured-macro ac:macro-id="cb0d3362-0bee-4855-9e4f-019ecfa6749e" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="">name</ac:parameter>
</ac:structured-macro> </strong> by <strong> <ac:structured-macro ac:macro-id="78410788-8a05-4680-9411-b25026bf0a65" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">user</ac:parameter>
</ac:structured-macro> </strong> on <ac:structured-macro ac:macro-id="d195060b-e724-4bfa-b93e-d6cad4ab671a" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">dd MMM, yyyy</ac:parameter>
<ac:parameter ac:name="">date</ac:parameter>
</ac:structured-macro> <span style="color: rgb(153,153,153);">(<ac:structured-macro ac:macro-id="5db87d79-809a-441d-b86c-23323b039061" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="format">#,0</ac:parameter>
<ac:parameter ac:name="">variable:days-ago</ac:parameter>
</ac:structured-macro> days ago)</span>.</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="a9d328ee-39a4-4dca-b02c-226246f6cab7" ac:name="text-filter" ac:schema-version="1">
<ac:parameter ac:name="value">In Progress</ac:parameter>
<ac:parameter ac:name="">workflow:state>name</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="ab1d462e-9dc7-4ae3-990d-f51bcf705787" ac:name="report-body" ac:schema-version="1">
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="992d145d-0be4-4efa-92ee-e592bc818dc0" ac:name="report-on" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">workflow:state</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="848529c2-140b-4fea-b7d6-402741362c08" ac:name="report-eval" ac:schema-version="1">
<ac:parameter ac:name="default">0</ac:parameter>
<ac:parameter ac:name="hidden">true</ac:parameter>
<ac:parameter ac:name="format">#,0</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">days-ago</ac:parameter>
<ac:plain-text-body><![CDATA[(%global:current date>date:milliseconds% - %date>date:milliseconds%)/1000/60/60/24]]></ac:plain-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="4a3067d2-6aa1-4fc8-9f0d-cf4b59b76c4c" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#FCF8F7</ac:parameter>
<ac:rich-text-body>
<p> This page is currently <strong> <ac:structured-macro ac:macro-id="c493bbcf-823d-4424-8755-1feb6490e6ac" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="">name</ac:parameter>
</ac:structured-macro> </strong> by <ac:structured-macro ac:macro-id="197080c4-180a-4a5c-a7a6-f8eb9b955c14" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">user</ac:parameter>
</ac:structured-macro>. The last state change was on <ac:structured-macro ac:macro-id="de21e79a-a3eb-4a3f-94b4-f6297febbe03" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">dd MMM, yyyy</ac:parameter>
<ac:parameter ac:name="">date</ac:parameter>
</ac:structured-macro> <span style="color: rgb(192,192,192);"> (<ac:structured-macro ac:macro-id="e995d310-4590-4fc9-9741-e73e9232d84c" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="format">#,0</ac:parameter>
<ac:parameter ac:name="">variable:days-ago</ac:parameter>
</ac:structured-macro> </span> <span style="color: rgb(192,192,192);"> days ago)</span>.</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
Â
Tasks on this page
Any pending tasks on a page will be displayed in this banner.
If there are no tasks, the message will display as 'There are 0 pending tasks on this page'.
Â
Source code - tasks on this page
<ac:structured-macro ac:macro-id="33728fc7-4297-4926-ba28-23d77438ceb8" ac:name="report-block" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="4f2d7c18-e18e-4a61-bfc3-caaeaab9e592" ac:name="local-reporter" ac:schema-version="1">
<ac:parameter ac:name="">@self</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="36f20eb9-dcc1-46e2-998c-1704904db5f1" ac:name="report-body" ac:schema-version="1">
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="1beca1cf-6411-4fd3-8f50-cf6477f4e365" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#FCF8F7</ac:parameter>
<ac:rich-text-body>
<p class="auto-cursor-target">Hi, <strong> <ac:structured-macro ac:macro-id="1e80187f-13c4-40b7-b7bc-530d0839da57" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="">global:current user</ac:parameter>
</ac:structured-macro> </strong>! There are <strong> <ac:structured-macro ac:macro-id="6326a45c-4100-4a58-bb8d-1f257758178a" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">0</ac:parameter>
<ac:parameter ac:name="">workflow:tasks>collection:size</ac:parameter>
</ac:structured-macro> </strong> pending tasks on this page.</p>
<ac:structured-macro ac:macro-id="e2eba851-a84d-4eb6-8cc4-5c709e2e5e78" ac:name="report-on" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">workflow:tasks</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="d11670b8-d6ae-4dfa-a428-6ce7b51d9ca6" ac:name="report-eval" ac:schema-version="1">
<ac:parameter ac:name="default">0</ac:parameter>
<ac:parameter ac:name="hidden">true</ac:parameter>
<ac:parameter ac:name="format">#</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">days-left</ac:parameter>
<ac:plain-text-body><![CDATA[(%duedate>date:milliseconds% - %global:current date>date:milliseconds%)/1000/60/60/24]]></ac:plain-text-body>
</ac:structured-macro>
<ul>
<li>
<strong> <ac:structured-macro ac:macro-id="5b74eea5-932e-4edf-8285-c398abd5eb11" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">name</ac:parameter>
</ac:structured-macro> </strong>, assigned to <ac:structured-macro ac:macro-id="0d2149f1-016a-49b5-a8fc-55a2e94ba687" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">assignees</ac:parameter>
</ac:structured-macro> by <ac:structured-macro ac:macro-id="f6c4cffe-4a3b-4272-9dfa-6df7e1c6f9df" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">user</ac:parameter>
</ac:structured-macro>, due <ac:structured-macro ac:macro-id="93e6c808-808a-4297-a303-6562f60c4a48" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">dd MMM yyyy</ac:parameter>
<ac:parameter ac:name="">duedate</ac:parameter>
</ac:structured-macro> <span style="color: rgb(192,192,192);">(<ac:structured-macro ac:macro-id="5de7e78e-1dab-4093-b26c-b07883fd7838" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">#</ac:parameter>
<ac:parameter ac:name="">variable:days-left</ac:parameter>
</ac:structured-macro> days left)</span>.</li>
</ul>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
Â
Tasks on this page (specific to current user)
Only the tasks assigned to the current user will be displayed on this banner.
If there are no tasks for the current user, the message will not display.
Source code - tasks on this page specific to current user
<ac:structured-macro ac:macro-id="ecbac06e-f91e-4c3f-8e25-f904d6a51567" ac:name="report-block" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="729bff5a-1a01-45b2-9eff-93965c198b8e" ac:name="local-reporter" ac:schema-version="1">
<ac:parameter ac:name="">@self</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="d02de49c-85d2-4bf6-8ac9-7322998af71a" ac:name="collection-filter" ac:schema-version="1">
<ac:parameter ac:name="matchFilters">any</ac:parameter>
<ac:parameter ac:name="matchItems">any</ac:parameter>
<ac:parameter ac:name="">workflow:tasks</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="d3985041-503b-4aaa-9179-99503bb5f223" ac:name="text-filter" ac:schema-version="1">
<ac:parameter ac:name="contains">%global:current user%</ac:parameter>
<ac:parameter ac:name="">assignees</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="d40d20b7-2a73-4298-afcd-6645d3a348ce" ac:name="report-body" ac:schema-version="1">
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="e310b496-bf54-4697-938e-44ea39c5def1" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="bgColor">#FCF8F7</ac:parameter>
<ac:rich-text-body>
<p>
<span> Hi </span>
<strong> <ac:structured-macro ac:macro-id="35ae54b2-1317-40df-b7b0-a98dd55957bc" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="">global:current user</ac:parameter>
</ac:structured-macro> </strong>
<span>, here are your tasks for this page:</span>
</p>
<ac:structured-macro ac:macro-id="4553ba9d-2699-419e-8ff5-224d7cde35f7" ac:name="report-on" ac:schema-version="1">
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">workflow:tasks</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="72aa3b7f-10e8-4923-8676-3c4cae155144" ac:name="report-eval" ac:schema-version="1">
<ac:parameter ac:name="default">0</ac:parameter>
<ac:parameter ac:name="hidden">true</ac:parameter>
<ac:parameter ac:name="format">#</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:parameter ac:name="">tasks-days-left</ac:parameter>
<ac:plain-text-body><![CDATA[(%duedate>date:milliseconds% - %global:current date>date:milliseconds%)/1000/60/60/24]]></ac:plain-text-body>
</ac:structured-macro>
<ul>
<li>
<strong>
<ac:structured-macro ac:macro-id="2b6a89a4-acc6-469a-ad83-8d40266c3f0e" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">name</ac:parameter>
</ac:structured-macro> </strong>, assigned to <ac:structured-macro ac:macro-id="c277a88f-6d46-4dc7-9664-919b37250bba" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">assignees</ac:parameter>
</ac:structured-macro> by <ac:structured-macro ac:macro-id="a4db427a-2fc6-4431-8f74-dcda66e0044d" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="link">true</ac:parameter>
<ac:parameter ac:name="">user</ac:parameter>
</ac:structured-macro>, due <ac:structured-macro ac:macro-id="06abf7e5-e26a-42f0-9b7a-f8a62ccce659" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">dd MMM yyyy</ac:parameter>
<ac:parameter ac:name="">duedate</ac:parameter>
</ac:structured-macro> <span style="color: rgb(192,192,192);">(<ac:structured-macro ac:macro-id="1dd8bc46-1c81-46f9-9cbe-37a0d3f8e4e9" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="format">#</ac:parameter>
<ac:parameter ac:name="">variable:tasks-days-left</ac:parameter>
</ac:structured-macro> days left)</span>.</li>
</ul>
<ul>
<li style="list-style-type: none;background-image: none;">
<ul>
<li>
<em>Additional comments: <ac:structured-macro ac:macro-id="3c93c8c2-2fff-4348-b42b-bc52cde0bb11" ac:name="report-info" ac:schema-version="1">
<ac:parameter ac:name="default">-</ac:parameter>
<ac:parameter ac:name="">comment</ac:parameter>
</ac:structured-macro>
</em>
</li>
</ul>
</li>
</ul>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
</ac:rich-text-body>
</ac:structured-macro>
Â