justi / redmine_contract_management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redmine Contact Management plugin

Overview

This plugin add functionality to manage contracts

  • In main meny shows link to contract management project
  • In main menu hides link to "Help" section

Installation Steps

  • Clone this repo to redmine /plugins folder for the user that runs redmine
  • Restart Redmine

Redmine settings

  • Go to "Administration -> Plugins" and setup plugin global settings. Make sure the contract management project exists. Changes in main menu require restarting redmine.
  • For project that choosen in previous step, create a new trackers - "Umowa", "Zlecenie" and "Błąd".
  • For that project create also custom fields for "Issue" for handle trackers listed above:
  • "Link do umowy" as Link type
  • "Partner umowy" as Company(Contact) type and mark them as required
  • "Numer umowy / Contract number" as Text type and mark them as required
  • "Typ umowy" as a list with positions:
  • Ramowa
  • Kontrakt Projektowy
  • Kontrakt Zespół
  • Umowa jednorazowa
  • Umowa utrzymaniowa
  • "Fakturowanie" as a list with positions:
  • Tygodniowe ( Monthly)
  • Miesięczne (Weekly)
  • To enable the API-style authentication, you have to check Enable REST API in Administration -> Settings -> Authentication
  • You can find your API key on your account page ( /my/account ) when logged in, on the right-hand pane of the default layout

Test API in development environment

  • Tracker name: "Umowa"
 curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"process_name":"Dodanie nowej umowy z Partnerem", "Nazwa Partnera":"Marketing sQuad Andrew Rogat","Adres Partnera":"Johnson Street 2423, London, UK","NIP Partnera":"UK41234123","Podaj nazw\u0119 Drugiego Partnera":"Espeo Software","Podaj adres drugiego Partnera":"Wroniecka 18\/5 Pozna\u0144 Poland","Podaj NIP drugiego Partnera":"7811821065","Typ umowy":"Ramowa","Pocz\u0105tek umowy":1446418800000,"Koniec umowy":null,"Typ rozliczenia":"Time Material","Fakturowanie":"w okre\u015blonych datach","Status umowy":"szkic","Data krytyczna na przygotowanie umowy":1445814000000,"Link do dokumentu":"https:\/\/docs.google.com\/document\/d\/1Kw1C0J3qVC8BeRoS4uh1KBGuKxwjxDaDv-heop1AOtQ\/edit","Osoba akceptuj\u0105ca - Partner Prawnik":"Sylwia Rogowicz","Osoba akceptuj\u0105ca - Partner Zarz\u0105d":null,"Osoba akceptuj\u0105ca - Partner Drugi Zarz\u0105d":"Andrew Rogat","Osoba Akceptuj\u0105ca prawnik PArtner Drugi":"Andrew Rogat","Akceptacja prawna Partner Prawnik":"Akceptuj\u0119 tre\u015b\u0107","Uwagi od Prawnika Partnera":"brak","Negocjacje Zawieszone":"Negocjacje trwaj\u0105","Uwagi Partner Zarz\u0105d":null,"Partner akceptuje umow\u0119":true,"Partner Drugi akceptacja":true,"Numer Umowy":"XXXX"}' http://localhost:3000/cm/new_issue?key=89949c8bb09152b17468a13be686537cf72d407d
 # the key it is your key for rest api
  • Tracker name: "Zlecenie"
 curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"process_name":"Nowe zlecenie do umowy", "Nazwa Partnera":"Netmachina","Typ umowy":"Ramowa","Numer umowy":"UR 1\/2013","Numer zlecenia":"001","Opis":"opisjest","Data realizacji":1446246000000,"Akceptacja b\u0142\u0119du":true}' http://localhost:3000/cm/new_issue?key=89949c8bb09152b17468a13be686537cf72d407d
 # the key it is your key for rest api
  • Tracker name: "Błąd"
 curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d ' {"process_name":"Zgłoszenie błędu - umowa utrzymaniowa", "Nazwa Partnera":"Netmachina","Typ umowa":"Umowa utrzymaniowa","Numer umowy":"4123","Numer b\u0142\u0119du":"223123","Opis":"opisb\u0142\u0119du","Data realizacji":1446246000000,"Akceptacja b\u0142\u0119du":true}' http://localhost:3000/cm/new_issue?key=89949c8bb09152b17468a13be686537cf72d407d
 # the key it is your key for rest api

About


Languages

Language:Ruby 93.3%Language:HTML 6.7%