Skip to content

Instantly share code, notes, and snippets.

View rushimusmaximus's full-sized avatar

Michael Rush rushimusmaximus

  • DF Studio
  • Camas, WA
View GitHub Profile

Enterprise API Lookup Domains

DF Studio supports Custom Lookup Domains - Enterprise-controlled terms a user picks from when editing a metadata field.
The terms available for a field are based the path in DF Studio (path), and/or the value of another metadata field (meta). Terms or options for a given field can be associated with Folders and Projects in DF Studio (path) and/or with specific fields on the Asset. Path based terms can be edited from within DF Studio (or can be hidden); All terms can be edited from the Enterprise API. The Enterprise API (found at https://yourdomain.dfstudio.com/api/v1/session.js) has several new resources which can be used to manage Lookup Domain values.

Lookup Domain Terms can also optionaly have Labels associated with them. When a label is present it will be shown in the DF Studio interface and used for Search Indexing. The value will be shown in the Enterprise API. Labels are optional and only supported for Dropdowns, Radio, Checkboxes, and Selector

@rushimusmaximus
rushimusmaximus / youtrack-notify-slack.js
Last active April 28, 2020 08:23
YouTrack JavaScript Workflow example: Post to Slack on specific issue state changes
var entities = require('v1/entities');
var http = require('v1/http');
exports.rule = entities.Issue.onChange({
title: 'Notify-slack',
action: function(ctx) {
var issue = ctx.issue;
if (issue.becomesReported || issue.becomesResolved || issue.becomesUnresolved) {
@rushimusmaximus
rushimusmaximus / gmailToSlack.js
Last active March 2, 2024 13:00
Google Apps Script to post filtered Gmail messages to Slack
/*
The intent of this script is for posting filtered Gmail messages to Slack.
This script could be used on its own with manually-marked messages, but it
is most useful it when combined with a Gmail filter. The script assumes that
target messages have had a specific label set on them and have been starred.
The Apps Script can then be set to run periodically.
2015/02 cmyers, rush