Flint provides out-of-the-box or ready to use workflows for Jira Operations. Here are the details of workflows/Flintbits for Jira operations-

flint-utilhttps://github.com/getflint/flint-util.gitflint-util > jira > operation

Available Flintbits

Perform all standard application operations available through the Jira, Some of them are listed below:

Jira available Flintbits

  • create_issue.rb
  • assign_issue.rb
  • add_comment.rb
  • add_worklog.rb
  • notify.rb
  • resolve_issue.rb
  • get_issue.rb
  • get_user.rb
  • get_comment.rb
  • update_comment.rb
  • delete_comment.rb
  • delete_issue.rb

Create_issue

To Create new issue for JIRA service desk.

Input and output JSON for the Create_issue operation

This section illustrates the Flintbit Input and output for Create issue operation.

Sample Input JSON for the Create_issue operation
{
"connector_name" : "jira",
"summary" : "something wrong.",
"description" : "System is not working properly.",
"issuetype" : "Service Request",
"priority" : "4",
"labels" : ["bugfix","blitz_test"],
"duedate" : "2016-03-11",
"reporter" : "Admin",
"assignee" : "admin",
"custom-field" : [{"Operating System": "Ubuntu"}]
}
Flintbit input elements for the Create_issue operation
connector_nameName of the Jira Connector to be configured.true
summarySummary about the issuetrue
descriptionDiscription for the issuetrue
issuetypeType of the issuetrue
priorityPriority of the issuetrue
labelsLabel for the issuetrue
duedateDue date of issuefalse
reporterReprter assign for issuefalse
assigneeIssue assign to whomfalse
custom-fieldCustom field for issuefalse
Sample JSON output for the Create_issue operations
{
  "meta": {
    "job-id": "job-38cca507-9453-4612-974a-cd45d1abd5ab",
    "exit-code": 0,
    "context": "flint-util:jira:operation:create_issue.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469787789050,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"self\"=>\"https://infiverve.atlassian.net/rest/api/2/issue/14603\", \"key\"=>\"IT-232\", \"id\"=>\"14603\"}",
    "exit-code": 0
  }
}

Assign_issue

To assign the issue by issue-id to other user

Input and output JSON for the Assign_issue operation

This section illustrates the Flintbit Input and output for Assign issue operation.

Sample Input JSON for the Assign_issue operation
{
"connector_name" : "jira",
"username" : "ketaki.khude",
"issue-id" : "IT-233",
"proxy" : "false"
} 
Flintbit input elements for the Assign_issue operation
connector_nameName of the Jira Connector to be configured.true
usernameName of the usertrue
issue-idId generated for the issuetrue
use-proxyProxy address if proxy is truetrue
proxyProxy is true or falsefalse
Sample JSON output for the Assign_issue operations
 {
  "meta": {
    "job-id": "job-900d6391-c402-4f92-8fb5-e56a2ecfd428",
    "exit-code": 0,
    "context": "flint-util:jira:operation:assign_issue.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469799672899,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "body": "{}",
    "exit-code": 0
  }
}

 

Add_comment

To Add comment for issue.

Input and output JSON for the Add_comment operation

This section illustrates the Flintbit Input and output for Add comment operation.

Sample Input JSON for the Add_comment operation
{
"connector_name" : "jira",
"body" : "Deploye tested code on server",
"issue-id" : "IT-232" ,
"type" : "role",
"value" : "Administrators",
"proxy" : "false"

}
Flintbit input elements for the Add_comment operation
connector_nameName of the Jira Connector to be configured.true
bodyText to be added as commenttrue
issue-idId generated for the issuetrue
typeType of the issuefalse

value

Value of the role e.g Administratorsfalse
proxyProxy is true or falsefalse
Sample JSON output for the Add_comment operations
{
  "meta": {
    "job-id": "job-1adda40d-1987-436e-88ad-4dc9ab30d802",
    "exit-code": 0,
    "context": "flint-util:jira:operation:add_comment.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469791983244,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": {
      "visibility": {
        "type": "role",
        "value": "Administrators"
      },
      "author": {
        "emailAddress": "abhishek@infiverve.com",
        "avatarUrls": {
          "48x48": "https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606",
          "24x24": "https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606",
          "16x16": "https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606",
          "32x32": "https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606"
        },
        "displayName": "Abhishek [Admin]",
        "name": "admin",
        "self": "https://infiverve.atlassian.net/rest/api/2/user?username=admin",
        "active": true,
        "timeZone": "Asia/Kolkata",
        "key": "admin"
      },
      "created": "2016-07-29T17:03:02.196+0530",
      "updateAuthor": {
        "emailAddress": "abhishek@infiverve.com",
        "avatarUrls": {
          "48x48": "https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606",
          "24x24": "https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606",
          "16x16": "https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606",
          "32x32": "https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606"
        },
        "displayName": "Abhishek [Admin]",
        "name": "admin",
        "self": "https://infiverve.atlassian.net/rest/api/2/user?username=admin",
        "active": true,
        "timeZone": "Asia/Kolkata",
        "key": "admin"
      },
      "self": "https://infiverve.atlassian.net/rest/api/2/issue/14603/comment/13712",
      "id": "13712",
      "body": "Deploye tested code on server",
      "updated": "2016-07-29T17:03:02.196+0530"
    },
    "exit-code": 0
  }
}

Add_worklog

To Add worklog for issue.

Input and output JSON for the Add_worklog operation

This section illustrates the Flintbit Input and output for Add worklog operation.

Sample Input JSON for the Add_worklog operation
{
"connector_name" : "jira",
"issue-id" : "IT-233",
"timeSpent": "2d 3h",
"adjust-estimate":"manual",
"reduce-by":"3h",
"new-estimate":"2d"
}
Flintbit input elements for the Add_worklog operation
connector_nameName of the Jira Connector to be configured.true
issue-idId generated for the issuetrue
commentText to commentfalse
timeSpentType of the issuefalse

adjust-estimate

Estimate time for issuefalse
reduce-byProxy addressfalse

new-estimate

Provide new estimatefasle
start_timeStart time of issuefalse
Sample JSON output for the Add_worklog operations
 {
  "meta": {
    "job-id": "job-9ac657d0-7c29-4241-8b54-e09b80609199",
    "exit-code": 0,
    "context": "flint-util:jira:operation:add_worklog.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470032189384,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"issueId\"=>\"14604\", \"timeSpentSeconds\"=>60, \"timeSpent\"=>\"1m\", \"author\"=>{\"emailAddress\"=>\"abhishek@infiverve.com\", \"avatarUrls\"=>{\"48x48\"=>\"https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606\", \"24x24\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606\", \"16x16\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606\", \"32x32\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606\"}, \"displayName\"=>\"Abhishek [Admin]\", \"name\"=>\"admin\", \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/user?username=admin\", \"active\"=>true, \"timeZone\"=>\"Asia/Kolkata\", \"key\"=>\"admin\"}, \"created\"=>\"2016-08-01T11:46:29.065+0530\", \"updateAuthor\"=>{\"emailAddress\"=>\"abhishek@infiverve.com\", \"avatarUrls\"=>{\"48x48\"=>\"https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606\", \"24x24\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606\", \"16x16\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606\", \"32x32\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606\"}, \"displayName\"=>\"Abhishek [Admin]\", \"name\"=>\"admin\", \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/user?username=admin\", \"active\"=>true, \"timeZone\"=>\"Asia/Kolkata\", \"key\"=>\"admin\"}, \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/issue/14604/worklog/11600\", \"started\"=>\"2016-08-01T11:46:22.022+0530\", \"id\"=>\"11600\", \"updated\"=>\"2016-08-01T11:46:29.065+0530\"}",
    "exit-code": 0
  }
}

Notify

 To Notify for issue.

Input and output JSON for the Notify operation

This section illustrates the Flintbit Input and output for Notify operation.

Sample Input JSON for the Notify operation
{
"connector_name" : "jira",
"issue-id" : "IT-232",
"body": "Virtual machine start request is still in pending request.",
"subject": "Regarding virtual machine start action",
"reporter":"true",
"assignee":"true",
"watcher":"false",
"voters":"false"
}
Flintbit input elements for the Notify operation
connector_nameName of the Jira Connector to be configured.true
bodyText to be added as commenttrue
issue-idId generated for the issuetrue
subjectSubject of the notificationfalse

reporter

Reprter of issuefalse
assigneeIssue assign to whomtrue

watcher

Watcher to issuefalse

voters

if you want to notify votersfalse
Sample JSON output for the Notify operations
{
  "meta": {
    "job-id": "job-03e5332a-3c77-45ba-ac10-3bc2dd810534",
    "exit-code": 0,
    "context": "flint-util:jira:operation:notify.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469796525361,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"status\"=>\"Notify successfully\"}",
    "exit-code": 0
  }
}

Resolve_issue

To change status of an issue to resolved.

Input and output JSON for the Resolve_issue operation

This section illustrates the Flintbit Input and output for Resolve issue operation.

Sample Input JSON for the Resolve_issue operation
{
"connector_name" : "jira",
"comment" : "Testing ",
"issue-id" : "IT-232",
"proxy" : "false"
}
Flintbit input elements for the Resolve_issue operation
connector_nameName of the Jira Connector to be configured.true
commentText to be added as commenttrue
issue-idId generated for the issuetrue
proxyProxy addressfalse
Sample JSON output for the Resolve_issue operation
{
  "meta": {
    "job-id": "job-57ef201a-8cb1-47e2-8f4e-d754fa7594cc",
    "exit-code": 0,
    "context": "flint-util:jira:operation:resolve_issue.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1469797740441,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"status\"=>\"resolved\"}",
    "exit-code": 0
  }
}

Get_issue

To Get details of issue.

Input and output JSON for the Get_issue operation

This section illustrates the Flintbit Input and output for Get issue operation.

Sample Input JSON for the Get_issue operation
 {
"connector_name" : "jira",
"username" : "admin",
"issue-id" : "IT-233",
"proxy" : "false"
}
Flintbit input elements for the Get_issue operation
connector_nameName of the Jira Connector to be configured.true
username
Provide usernametrue
issue-idId generated for the issuetrue
proxyProxy is true or falsefalse
Sample JSON output for the Get_issue operation
 {
  "meta": {
    "job-id": "job-86d0cb82-b504-4297-bb68-df186835d289",
    "exit-code": 0,
    "context": "flint-util:jira:operation:get_issue.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470028793934,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "body": {
      "self": "https://infiverve.atlassian.net/rest/api/2/issue/14604",
      "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
      "id": "14604",
      "fields": {
        "issuetype": {
          "name": "Service Request",
          "self": "https://infiverve.atlassian.net/rest/api/2/issuetype/10001",
          "description": "Created by JIRA Service Desk.",
          "id": "10001",
          "iconUrl": "https://infiverve.atlassian.net/servicedesk/issue-type-icons?icon=service-request",
          "subtask": false
        },
        "timespent": null,
        "project": {
          "name": "IT Service Desk",
          "self": "https://infiverve.atlassian.net/rest/api/2/project/10000",
          "id": "10000",
          "avatarUrls": {
            "48x48": "https://infiverve.atlassian.net/secure/projectavatar?pid=10000&avatarId=10011",
            "24x24": "https://infiverve.atlassian.net/secure/projectavatar?size=small&pid=10000&avatarId=10011",
            "16x16": "https://infiverve.atlassian.net/secure/projectavatar?size=xsmall&pid=10000&avatarId=10011",
            "32x32": "https://infiverve.atlassian.net/secure/projectavatar?size=medium&pid=10000&avatarId=10011"
          },
          "key": "IT"
        },
        "customfield_10032": null,
        "customfield_10033": {
          "self": "https://infiverve.atlassian.net/rest/api/2/customFieldOption/10004",
          "value": "Ubuntu",
          "id": "10004"
        },
        "fixVersions": [],
        "customfield_10034": null,
        "aggregatetimespent": null,
        "resolution": null,
        "customfield_10027": {
          "name": "Time to resolution",
          "completedCycles": [],
          "id": "1",
          "ongoingCycle": {
            "paused": false,
            "goalDuration": {
              "millis": 28800000,
              "friendly": "8h"
            },
            "breachTime": {
              "epochMillis": 1470048096087,
              "iso8601": "2016-08-01T16:11:36+0530",
              "friendly": "Today 4:11 PM",
              "jira": "2016-08-01T16:11:36.087+0530"
            },
            "breached": false,
            "startTime": {
              "epochMillis": 1469788896087,
              "iso8601": "2016-07-29T16:11:36+0530",
              "friendly": "Friday 4:11 PM",
              "jira": "2016-07-29T16:11:36.087+0530"
            },
            "withinCalendarHours": true,
            "elapsedTime": {
              "millis": 9497671,
              "friendly": "2h 38m"
            },
            "remainingTime": {
              "millis": 19302329,
              "friendly": "5h 21m"
            }
          },
          "_links": {
            "self": "https://infiverve.atlassian.net/rest/servicedeskapi/request/14604/sla/1"
          }
        },
        "customfield_10028": {
          "name": "Time to first response",
          "completedCycles": [],
          "id": "2",
          "ongoingCycle": {
            "paused": false,
            "goalDuration": {
              "millis": 144000000,
              "friendly": "40h"
            },
            "breachTime": {
              "epochMillis": 1470393696087,
              "iso8601": "2016-08-05T16:11:36+0530",
              "friendly": "05/Aug/16 4:11 PM",
              "jira": "2016-08-05T16:11:36.087+0530"
            },
            "breached": false,
            "startTime": {
              "epochMillis": 1469788896087,
              "iso8601": "2016-07-29T16:11:36+0530",
              "friendly": "Friday 4:11 PM",
              "jira": "2016-07-29T16:11:36.087+0530"
            },
            "withinCalendarHours": true,
            "elapsedTime": {
              "millis": 9497674,
              "friendly": "2h 38m"
            },
            "remainingTime": {
              "millis": 134502326,
              "friendly": "37h 21m"
            }
          },
          "_links": {
            "self": "https://infiverve.atlassian.net/rest/servicedeskapi/request/14604/sla/2"
          }
        },
        "resolutiondate": null,
        "workratio": -1,
        "lastViewed": "2016-08-01T10:39:42.454+0530",
        "watches": {
          "self": "https://infiverve.atlassian.net/rest/api/2/issue/IT-233/watchers",
          "watchCount": 1,
          "isWatching": true
        },
        "created": "2016-07-29T16:11:36.064+0530",
        "customfield_10020": null,
        "customfield_10021": null,
        "customfield_10022": null,
        "customfield_10023": "Not started",
        "priority": {
          "name": "Low",
          "self": "https://infiverve.atlassian.net/rest/api/2/priority/4",
          "iconUrl": "https://infiverve.atlassian.net/images/icons/priorities/low.svg",
          "id": "4"
        },
        "customfield_10100": null,
        "customfield_10024": null,
        "customfield_10101": null,
        "customfield_10025": null,
        "customfield_10300": null,
        "labels": [
          "blitz_test",
          "bugfix"
        ],
        "customfield_10026": [],
        "customfield_10016": null,
        "customfield_10017": null,
        "customfield_10018": null,
        "customfield_10019": null,
        "timeestimate": null,
        "aggregatetimeoriginalestimate": null,
        "versions": [],
        "issuelinks": [],
        "assignee": {
          "emailAddress": "ketaki.khude@infiverve.com",
          "avatarUrls": {
            "48x48": "https://infiverve.atlassian.net/secure/useravatar?ownerId=ketaki.khude&avatarId=10605",
            "24x24": "https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=ketaki.khude&avatarId=10605",
            "16x16": "https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=ketaki.khude&avatarId=10605",
            "32x32": "https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=ketaki.khude&avatarId=10605"
          },
          "displayName": "Ketaki khude",
          "name": "ketaki.khude",
          "self": "https://infiverve.atlassian.net/rest/api/2/user?username=ketaki.khude",
          "active": true,
          "timeZone": "Asia/Kolkata",
          "key": "ketaki.khude"
        },
        "updated": "2016-07-29T19:11:13.680+0530",
        "status": {
          "name": "Waiting for support",
          "self": "https://infiverve.atlassian.net/rest/api/2/status/10000",
          "description": "This was auto-generated by JIRA Service Desk during workflow import",
          "iconUrl": "https://infiverve.atlassian.net/images/icons/status_generic.gif",
          "id": "10000",
          "statusCategory": {
            "name": "No Category",
            "self": "https://infiverve.atlassian.net/rest/api/2/statuscategory/1",
            "colorName": "medium-gray",
            "id": 1,
            "key": "undefined"
          }
        },
        "components": [],
        "timeoriginalestimate": null,
        "description": "System is not working properly.",
        "customfield_10012": "0|i0058f:",
        "customfield_10013": null,
        "customfield_10014": null,
        "timetracking": {},
        "customfield_10015": null,
        "customfield_10007": null,
        "attachment": [],
        "customfield_10009": null,
        "aggregatetimeestimate": null,
        "summary": "something wrong.",
        "creator": {
          "emailAddress": "abhishek@infiverve.com",
          "avatarUrls": {
            "48x48": "https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606",
            "24x24": "https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606",
            "16x16": "https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606",
            "32x32": "https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606"
          },
          "displayName": "Abhishek [Admin]",
          "name": "admin",
          "self": "https://infiverve.atlassian.net/rest/api/2/user?username=admin",
          "active": true,
          "timeZone": "Asia/Kolkata",
          "key": "admin"
        },
        "subtasks": [],
        "reporter": {
          "emailAddress": "abhishek@infiverve.com",
          "avatarUrls": {
            "48x48": "https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606",
            "24x24": "https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606",
            "16x16": "https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606",
            "32x32": "https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606"
          },
          "displayName": "Abhishek [Admin]",
          "name": "admin",
          "self": "https://infiverve.atlassian.net/rest/api/2/user?username=admin",
          "active": true,
          "timeZone": "Asia/Kolkata",
          "key": "admin"
        },
        "customfield_10000": null,
        "aggregateprogress": {
          "progress": 0,
          "total": 0
        },
        "customfield_10001": null,
        "customfield_10002": null,
        "customfield_10200": "com.atlassian.servicedesk.plugins.approvals.internal.customfield.ApprovalsCFValue@12d87c3",
        "customfield_10003": null,
        "customfield_10004": null,
        "environment": null,
        "duedate": "2016-03-11",
        "progress": {
          "progress": 0,
          "total": 0
        },
        "comment": {
          "total": 0,
          "comments": [],
          "maxResults": 0,
          "startAt": 0
        },
        "votes": {
          "hasVoted": false,
          "self": "https://infiverve.atlassian.net/rest/api/2/issue/IT-233/votes",
          "votes": 0
        },
        "worklog": {
          "total": 0,
          "startAt": 0,
          "maxResults": 20,
          "worklogs": []
        }
      },
      "key": "IT-233"
    },
    "exit-code": 0
  }
}

Get_user

To Get user for created issue.

Input and output JSON for the Get_user operation

This section illustrates the Flintbit Input and output for Get user operation.

Sample Input JSON for the Get_user operation
 {
"connector_name" : "jira",
"user" : "admin"
}
Flintbit input elements for the Get_user operation
connector_nameName of the Jira Connector to be configured.true
userProvide usernametrue
Sample JSON output for the Get_user operation
{
  "meta": {
    "job-id": "job-28156be5-b335-4daf-9142-aad4d7c14125",
    "exit-code": 0,
    "context": "flint-util:jira:operation:get_user.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470029692527,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"emailAddress\"=>\"abhishek@infiverve.com\", \"expand\"=>\"groups,applicationRoles\", \"avatarUrls\"=>{\"48x48\"=>\"https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606\", \"24x24\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606\", \"16x16\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606\", \"32x32\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606\"}, \"displayName\"=>\"Abhishek [Admin]\", \"name\"=>\"admin\", \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/user?username=admin\", \"active\"=>true, \"timeZone\"=>\"Asia/Kolkata\", \"groups\"=>{\"size\"=>8, \"items\"=>#<Java::NetMinidevJson::JSONArray:0x48a33b29>}, \"locale\"=>\"en_US\", \"key\"=>\"admin\", \"applicationRoles\"=>{\"size\"=>2, \"items\"=>#<Java::NetMinidevJson::JSONArray:0x28c1b79>}}",
    "exit-code": 0
  }
}

Get_Comment

To Get comment on issue.

Input and output JSON for the Get_comment operation

This section illustrates the Flintbit Input and output for Get comment operation.

Sample Input JSON for the Get_comment operation
 {
"connector_name" : "jira",
"comment-id" : 13714,
"issue-id" : "IT-233",
"proxy" : "false"
}
Flintbit input elements for the Get_comment operation
connector_nameName of the Jira Connector to be configured.true
comment-idId of the commenttrue
issue-idId generated for the issuetrue
proxyProxy is true or falsefalse
Sample JSON output for the Get_comment operation
 {
  "meta": {
    "job-id": "job-a3bda66a-77e3-49a8-94c4-6213ec2e12d4",
    "exit-code": 0,
    "context": "flint-util:jira:operation:get_comment.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470030993979,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "result": "{\"visibility\"=>{\"type\"=>\"role\", \"value\"=>\"Administrators\"}, \"author\"=>{\"emailAddress\"=>\"abhishek@infiverve.com\", \"avatarUrls\"=>{\"48x48\"=>\"https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606\", \"24x24\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606\", \"16x16\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606\", \"32x32\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606\"}, \"displayName\"=>\"Abhishek [Admin]\", \"name\"=>\"admin\", \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/user?username=admin\", \"active\"=>true, \"timeZone\"=>\"Asia/Kolkata\", \"key\"=>\"admin\"}, \"created\"=>\"2016-08-01T11:21:37.126+0530\", \"updateAuthor\"=>{\"emailAddress\"=>\"abhishek@infiverve.com\", \"avatarUrls\"=>{\"48x48\"=>\"https://infiverve.atlassian.net/secure/useravatar?ownerId=admin&avatarId=10606\", \"24x24\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=small&ownerId=admin&avatarId=10606\", \"16x16\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=xsmall&ownerId=admin&avatarId=10606\", \"32x32\"=>\"https://infiverve.atlassian.net/secure/useravatar?size=medium&ownerId=admin&avatarId=10606\"}, \"displayName\"=>\"Abhishek [Admin]\", \"name\"=>\"admin\", \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/user?username=admin\", \"active\"=>true, \"timeZone\"=>\"Asia/Kolkata\", \"key\"=>\"admin\"}, \"self\"=>\"https://infiverve.atlassian.net/rest/api/2/issue/14604/comment/13714\", \"id\"=>\"13714\", \"body\"=>\"Testing\", \"updated\"=>\"2016-08-01T11:21:37.126+0530\"}",
    "exit-code": 0
  }
}

Update_comment

 To Update comment for issue.


 Input and output JSON for the Update_comment operation
 
This section illustrates the Flintbit Input and output for Update comment operation.
 
 Sample Input JSON for the Update_comment operation
 {
"connector_name" : "jira",
"comment-id" : 13714,
"issue-id" : "IT-233",
"comment" : "Updated comment",
"value":"Ubuntu",
"proxy" : "false"
} 
Flintbit input elements for the Update_comment operation
connector_nameName of the Jira Connector to be configured.true
commentText to be added as commenttrue
issue-idId generated for the issuetrue
commentText to update in commenttrue
valueValue of the role e.g Administrators 
typeType of the issuefalse
proxyProxy is true or falsefalse
Sample JSON output for the Update_comment operation
{
  "meta": {
    "job-id": "job-656288af-849e-4ee0-b895-2876d7766b03",
    "exit-code": 0,
    "context": "flint-util:jira:operation:update_comment.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470031471846,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "exit-code": 0
  }
}

Delete_comment

To Delete comment for provided issue-id.

Input and output JSON for the Delete_comment operation

This section illustrates the Flintbit Input and output for Delete comment operation.

Sample Input JSON for the Delete_comment operation
  {
"connector_name" : "jira",
"comment-id" : 13714,
"issue-id" : "IT-233",
"proxy" : "false"
}
Flintbit input elements for the Delete_comment operation
connector_nameName of the Jira Connector to be configured.true
comment-idId of the commenttrue
issue-idId generated for the issuetrue
proxyProxy is true or falsefalse
Sample JSON output for the Delete_comment operation
 {
  "meta": {
    "job-id": "job-c49699c6-4918-4f71-803a-24a933d1871a",
    "exit-code": 0,
    "context": "flint-util:jira:operation:delete_comment.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470031630023,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "exit-code": 0
  }
}

Delete_issue

To Delete the issue.

Input and output JSON for the Delete_issue operation

This section illustrates the Flintbit Input and output for Delete issue operation.

Sample Input JSON for the Delete_issue operation
{
"connector_name" : "jira",
"issue-id" : "IT-233",
"proxy" : "false"
}
Flintbit input elements for the Delete_issue operation
 connector_name Name of the Jira Connector to be configured.true
 issue-id Id generated for the issuetrue
 proxyProxy is true or falsefalse
Sample JSON output for the Delete_issue operations
 {
  "meta": {
    "job-id": "job-3ec9c07b-d215-41ee-bc57-34925f9b9562",
    "exit-code": 0,
    "context": "flint-util:jira:operation:delete_issue.rb",
    "message": "success",
    "timeout": 60000,
    "timestamp": 1470032372131,
    "status": "complete",
    "content-type": "application/json",
    "username": "admin"
  },
  "output": {
    "message": "success",
    "exit-code": 0
  }
}

 





  • No labels