Page MenuHomeDevCentral

arc-logtask

Authored By
dereckson
Apr 5 2015, 03:53
Size
496 B
Referenced Files
None
Subscribers
None

arc-logtask

#!/bin/sh
ARC=arc
URL="http://devcentral.nasqueron.org"
PRIORITY=50
ARC_OPTIONS="--conduit-uri $URL/api"
arcTaskCreatedId=`$ARC todo $1 --project Servers --no-ansi $ARC_OPTIONS | gawk '{match($3,"T[0-9]+",a)}END{print a[0]}' | cut -d'T' -f 2`
$ARC close T$arcTaskCreatedId --status Resolved $ARC_OPTIONS > /dev/null
echo "{\"id\": $arcTaskCreatedId, \"priority\": $PRIORITY, \"viewPolicy\": \"public\"}" | $ARC call-conduit maniphest.update $ARC_OPTIONS > /dev/null
echo $URL/T$arcTaskCreatedId

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1571
Default Alt Text
arc-logtask (496 B)

Event Timeline