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>

</script>

<style>
.title{
	font-size: 14px;
	font-weight: normal;
	color: white;
	margin-bottom: 5px;
	height: fit-content!important
}
.subtitle{
	font-size: 15px;
	font-weight: bold;
	color: white;
	margin-bottom: 35px;
	height: fit-content!important;
}

#main-container-title{
	font-size: 18px22px;
	font-weight: bold;
	color: #333;
	margin-bottom: 30px;
}

#main-container-summary{
	font-size: 16px18px;
	font-weight: normal;
	color: #757575;
}
</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: auto;margin-bottom: 25px; display: flex; flex-direction: column;padding-bottom: 20px;border-bottom: 2px solid lightgray;
ContainerIDsidebar-container-top


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



Custom section
CustomCSSheight: auto;display: flex; flex-direction: column;
ContainerIDsidebar-container-bottom


HTML
<div class='title'>Funding Stage</div>
<div id='sidebar-container-stage' class='subtitle'> </div>
<div class='title'>Amount Raised</div>
<div id='sidebar-container-funding' class='subtitle'> </div>
<div class='title'>Tags</div>
<div id='sidebar-container-tags' class='subtitle'> </div>





Custom column
CustomCSSpadding: 20px30px; box-sizing: border-box; display: flex; flex-direction: column;height: unset!important;background: white!important;margin-left: 20px;width:100%!important;


HTML
<div id='main-container-title'> </div>
<div id='main-container-summary'> </div>



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){
		$('#sidebar-container-title')[0].innerHTML = data.issues[0]['fields']['customfield_10108'];
		$('#sidebar-container-title')[0].style.fontSize = "20px";
		$('#sidebar-container-title')[0].style.marginBottom = "10px";
		$('#sidebar-container-industry')[0].innerHTML = data.issues[0]['fields']['customfield_10641'];
		$('#sidebar-container-stage')[0].innerHTML = data.issues[0]['fields']['customfield_10653'].value;
		$('#sidebar-container-funding')[0].innerHTML = data.issues[0]['fields']['customfield_10224'];
		$('#sidebar-container-tags')[0].innerHTML = data.issues[0]['fields']['customfield_10640'];
		$('#main-container-title')[0].innerHTML = data.issues[0]['fields']['customfield_10116'];
		$('#main-container-summary')[0].innerHTML = data.issues[0]['fields']['customfield_10226'];
	}
});

</script>


...