This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "TEST TIMER FIELD", | |
"value": { | |
"displayValue": "▶️ 108m -> 01/17/22 09:48 PM", | |
"created": "2022-01-17T19:48:01Z", | |
"dateNextUpdate": "2022-01-17T20:04:48Z", | |
"started": "2022-01-17T19:48:01Z", | |
"failed": "2022-01-17T21:48:01Z", | |
"state": "RUNNING", | |
"hoursValueTimeSpent": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class='aui'> | |
<tr> | |
<td> | |
real time | |
</td> | |
<td> | |
$timeFormatUtils.secondsToFormat($value.timeSpentRealTime, $timerFieldConfig.showFieldFormat) | |
</td> | |
</tr> | |
<tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($cfSelect = 10302) | |
#set($text = "[YOUR DOWNLOADLINK WILL BE SHOWN HERE AFTER SELECTING A MODULE]") | |
#set($href = "https://www.website") | |
#if($cfValues.getFromForm($cfSelect)) | |
#set($text = "https://www.website/downloads/dokumente/" + $cfValues.getFromForm($cfSelect).value.replace(" ", "_").replace("/", "_")) | |
#set($href = "https://www.website/downloads/dokumente/" + $cfValues.getFromForm($cfSelect).value.replace(" ", "_").replace("/", "_")) | |
#end | |
<p1>Please download the following document:</p1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
messageType values: success, info, warning, error, change (Type "Change" works only for "Show as flag - No" and Jira 8.4.0+), SIMPLE_VIEW | |
viewVersion: v1 (standard), v2 (big) | |
{ | |
"title": "Test title", | |
"body": "test body", | |
"messageType": "info", | |
"asFlag": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def field = getFieldById("customfield_10000") | |
field.setHidden(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['jquery'], function($) { | |
var lastSelectedOption = null; | |
function setMessage(message){ | |
message.jibrokMessageKey = true //Require for Service Desk | |
AJS.$('#' + CF_ID_MESSAGE).text(JSON.stringify(message)).trigger('change')//Service Desk create request | |
} | |
//edit here -> | |
var CF_ID_MESSAGE = 'customfield_10200' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
AJS.toInit(() => { | |
var baseUrl = "http://localhost:2990/jira" | |
var upmUrl = "/plugins/servlet/upm" | |
var worklfowUrl = "/secure/admin/workflows" | |
function isWorkingTime(){ | |
return new Date().getHours() > 7 && new Date().getHours() < 22 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkFieldsAreEmptyAndHideMessage(fieldIds, messageFieldId){ | |
AJS.$.ajax({ | |
url: AJS.contextPath() + '/rest/api/2/issue/' + JIRA.Issue.getIssueId() + "?fields=" + fieldIds.join(), | |
type: "GET", | |
async: false, | |
success: function(issue) { | |
if(areAllFieldsEmpty(issue, fieldIds)){ | |
hideMessage(messageFieldId) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['jquery'], function($) { | |
function setCFValue(customfield_id, value){ | |
$('#' + customfield_id).val(value).trigger('change') | |
} | |
function setMessage(title, body, messageType){ | |
var jsonMessage = {}; | |
jsonMessage.title = title; | |
jsonMessage.body = body; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['jquery'], function($) { | |
function setMessage(title, body, messageType){ | |
var jsonMessage = {} | |
jsonMessage.title = title | |
jsonMessage.body = body | |
jsonMessage.messageType = messageType | |
jsonMessage.jibrokMessageKey = true //Require for Service Desk | |
$('#' + CF_ID_MESSAGE).text(JSON.stringify(jsonMessage)).trigger('change')//Service Desk create request | |
} |
NewerOlder