x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTML
<script>
var data_fields = [];
jQuery.ajax({
    url: "/rest/scriptrunner/latest/custom/searchJiraTicketsPaginated",
    headers: {
      'X-Atlassian-Token' : 'nocheck',
      'Content-type' : 'application/json'
    },
    type: "POST",
    dataType: 'json',
    data: JSON.stringify({
      "jql": "project = PGH AND issue = " + new URLSearchParams(window.location.search).get('company'),
      "startAt": 0,
      "maxResults": 1
    }),
	success: function(data){
		let fields = ['customfield_10108', 'customfield_10641', 'customfield_10653', 'customfield_10224', 'customfield_10640'];
		for(let i = 0; i < fields.length; i++){
			data_fields.push(data.issues[0]['fields'][fields[i]]);
		}
	}
});
</script>

<style>
.title{
	font-size: 16px;
	font-weight: normal;
	color: white;
}
.subtitle{
	font-size: 18px;
	font-weight: bold;
	color: white;
}
</style>


Custom section
CustomCSSheight: fit-content!important;border: none!important; background: transparent!important;width: 80%!important;margin: 0 auto!important;
ContainerIDcustom-section-company-container


Custom column
CustomCSSposition: relative; height: unset!important; background: transparent!important;width: 320px!important; min-width: 320px!important;


Show If
groupconfluence-administrators


Custom column
CustomCSSmargin: 0!important; width: 100%!important;
Heightauto

Custom button
Typecustom-button
TextEdit Profile
Width100%



Show If

Dynamic general sidebar
MessageButtonTitleView Website
MessageButtonCustomCSSbackground-color: #6781ca;
BackButtonCustomCSSbackground-color: #636363;
BackButtonUrl/display/PN/#tab-STARTUPS
SidebarHeight100%
BackButtonTitleBack to Startups


Custom section
CustomCSSpadding: 20px; box-sizing: border-box; background: #333; height: 100%; position: relative; display: flex; flex-direction: column;
ContainerIDsidebar-container


Custom section
CustomCSSmax-height: 200px; min-height: 200px; height: 200px; border-bottom: 2px solid lightgray;
ContainerIDsidebar-container-top


HTML
<div id='sidebar-container-title' class='title'> </div>
<div id='sidebar-container-industry' class='subtitle'> </div>



Custom section
CustomCSSheight: auto;
ContainerIDsidebar-container-bottom





Custom column
CustomCSSheight: unset!important;background: white!important;margin-left: 20px;width:100%!important;
Heightauto


General content
ContentHeight120hv


General description
MyTitle
IDdescription-title

-




HTML
<script>
$('#sidebar-container-title')[0].innerHTML = data_fields[0];
$('#sidebar-container-titleindustry')[1].innerHTML = data_fields[1];
</script>


...