Giter Site home page Giter Site logo

steverhoads / leankit.api.excelhelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leankit/leankit.api.excelhelper

0.0 2.0 0.0 114 KB

LeanKit API Client for Excel and other Microsoft Office VBA or COM-based applications

License: MIT License

C# 100.00%

leankit.api.excelhelper's Introduction

LeanKit.API.ExcelHelper

LeanKit API Client for Excel and other Microsoft Office VBA or COM-based applications.

Requirements

Deploying the Utility

  1. Clone this repository

  2. Compile using Visual Studio

  3. Deploy and register LeanKit.API.ExcelHelper.dll

    • Note: Compiling the software will automatically register the assembly on the current computer. The following steps are only required to register the component on other computers.
    • Copy all the files in /bin/Debug/ to the destination computer
    • Open a command prompt as an Administrator
    • Change to the directory where LeanKit.API.ExcelHelper.dll is located
    • Run C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe .\LeanKit.API.ExcelHelper.dll
  4. Open Excel

  5. Open the Visual Basic editor (ALT+F11)

  6. Go to Tools -> References...

  7. Find and check "LeanKit API Client for Excel" and click OK

Example macro code for Excel VBA:

Public Sub TestCreateLeanKitCard()
    Dim lkClient As New LeanKit_API_ExcelHelper.Client
    Dim accountName As String
    Dim accountEmail As String
    Dim accountPassword As String
    
    Dim boardId As LongLong
    Dim cardId As LongLong
    Dim laneId As LongLong
    Dim title As String
    Dim description As String
    Dim cardType As String
    Dim customIcon As String
    Dim priority As Long
    Dim parentCardId As LongLong
    Dim cardSize As Long
    Dim cardIndex As Long
    Dim isBlocked As Boolean
    Dim blockedReason As String
    Dim externalCardId As String
    Dim externalSystemName As String
    Dim externalSystemUrl As String
    Dim startDate As String
    Dim dueDate As String
    Dim tags As String
    Dim assignedUsers As String
    Dim commentText As String
    
    accountName = "your-account-name"
    accountEmail = "[email protected]"
    accountPassword = "your-p@ssw0rd"
    
    boardId = 63454169
    laneId = 0 ' Enter the lane id, or leave as 0 to create card in default drop lane
    title = "Excel Helper Test Card (from Excel)"
    description = "Description of card"
    cardType = "Task"
    customIcon = "Bug" ' Optional Custom Icon (formerly named "class of service"), leave empty for no custom icon
    priority = 1
    parentCardId = 0
    cardSize = 0
    cardIndex = 0
    externalCardId = "123"
    externalSystemName = "Excel Helper"
    externalSystemUrl = ""
    isBlocked = True
    blockedReason = "Because reasons"
    startDate = "2015/07/25" ' Date format should match the account date format settings
    dueDate = "2015/08/25" ' Date format should match the account date format settings
    tags = "tag1, tag2"
    assignedUsers = "[email protected]" ' Comma-separated list of email addresses
    commentText = "Testing a comment"
    
    lkClient.Initialize accountName, accountEmail, accountPassword
    
    cardId = lkClient.AddCard(boardId, title, description, priority, cardSize, cardIndex, _
        laneId, cardType, customIcon, parentCardId, isBlocked, blockedReason, _
        externalCardId, externalSystemName, externalSystemUrl, _
        startDate, dueDate, tags, assignedUsers)
    
    lkClient.AddCardComment boardId, cardId, commentText
    
    MsgBox "Created card: " & cardId
 
End Sub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.