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 | |
jsonMessage.messageType = messageType |
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 | |
jsonMessage.messageType = messageType |
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 | |
jsonMessage.messageType = messageType |
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 | |
} |
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 | |
} |
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 | |
} |
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 | |
} |
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
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
<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 | |
} |
OlderNewer