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
new Notification(notification).addedLabel("Remove All Attachments").card().attachments().each(function(att) | |
{ | |
att.remove(); | |
}); |
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
/** @OnlyCurrentDoc */ | |
function custo() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
spreadsheet.getRange('F5:F29').activate(); | |
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Calc Custo'), true); | |
spreadsheet.getRange('C:C').activate(); | |
spreadsheet.getActiveSheet().insertColumnsAfter(spreadsheet.getActiveRange().getLastColumn(), 1); | |
spreadsheet.getActiveRange().offset(0, spreadsheet.getActiveRange().getNumColumns(), spreadsheet.getActiveRange().getNumRows(), 1).activate(); | |
spreadsheet.getRange('D2').activate(); |
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
<?php | |
/** | |
* @copyright 2014-2019 Sentora Project (http://www.sentora.org/) | |
* Sentora is a GPL fork of the ZPanel Project whose original header follows: | |
* | |
* ZPanel - A Cross-Platform Open-Source Web Hosting Control panel. | |
* | |
* @package ZPanel | |
* @version $Id$ |
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 copp_auto(notification) | |
{ | |
var added = new Notification(notification).addedCard("Fechada"); | |
try | |
{ | |
added.board("Automação").list("Temp").card(added.name()); | |
} | |
catch(e) |
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 addchecklistfromlabel(notification) | |
{ | |
new Notification(notification).cards().each(function(card) | |
{ var label = new Notification(notification).addedLabel(); | |
card.addChecklist("Corte",function(list) | |
{ | |
list.addItem(label.name()); | |
}); |
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 CpEscritorio(notification) | |
{ | |
//Get a card moved to the Fechada List | |
var card = new Notification(notification).movedCard("Obras Fechadas"); | |
//Copy the card to the top of the Started list in the Work In Progress Board | |
card.attachLink( | |
card | |
.copyToList(new Trellinator().board("Automação").findOrCreateList("Temp"),"top") | |
.attachLink(card.link()) | |
.link() |
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 MvEsc(notification) | |
{ | |
new Notification(notification) | |
.movedCard("Fechada") | |
.moveToList(Board.findOrCreate("Escritório - Alumínio").findOrCreateList("Obras Fechadas")); | |
} |
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 addChecklistFromLabel(notification) | |
{ | |
var label = new Notification(notification).addedLabel(); | |
label.card().board("Orçamentos - Alumínio").card("teste").addChecklist(label.name(),label.card()); | |
} |
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 notifyOnLabelAdd(notification) | |
{ | |
var label = new Notification(notification).addedLabel(); | |
label.card().postComment("Esquadria "+label.name()); | |
} |
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 fullAuditTrail(notification) | |
{ | |
var notif = new Notification(notification); | |
var card = notif.card(); | |
try | |
{ | |
var sheet = SpreadsheetApp.openByUrl(card.attachment("Full Audit Trail").link()).getSheetByName("Actions Log"); | |
} |
NewerOlder