Remind me of this draft in Due

Posted by @derekvan, Last update over 5 years ago

Creates a reminder of a draft with a link in the notes of a task in due. Optional to set a time. Based on script by @nahumck


  • script

    // Get link to draft
    var url = draft.permalink;
    // Prompt for date with toggle for reminder
    var p = Prompt.create();
    p.title = "Remind about what? When?";
    p.addTextField("title", "Title", draft.title);
    p.addButton("Send to Due");
    var con =;
    var title =  p.fieldValues["title"];
    var when = p.fieldValues["when"];
    var reminder = title + " " + when + "      " + url;
    const baseURL = "due://x-callback-url/add?";
    var cb = CallbackURL.create();
    cb.baseURL = baseURL;
    cb.addParameter("title", reminder);
    var success =;
    if (success) {
             console.log ("Done!");
    else  {
    	   	if(cb.status == "cancel"){
    	   else {


  • After Success Default
    Notification Info
    Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.