Register redmine issue from Python

Just use python-redmine

The library used in the following script is

! /usr/bin/env python
-*- coding: utf-8 -*-                                                                                                                                
from pit import Pit
from redmine import Redmine # needs python-redmine (execute the command "pip instsall python-redmine")                                                

def main():
    conf = Pit.get('redmine',
                   {'require': {'url': '',
                                'username': '',
                                'password': '',
                                }})
    url = conf['url']
    username = conf['username']
    password = conf['password']

    redmine = Redmine(url, username=username, password=password)

    issue = redmine.issue.new()
    issue.project_id = 'project'
 issue.subject = u'test'
 issue.tracker_id = 12 # tracker
 issue.description = u'test'
 issue.status_id = 1 # status
 issue.assigned_to_id = 51 # Person in charge
    issue.save()

if __name__ == '__main__':
    main()

Recommended Posts

Register redmine issue from Python
MeCab from Python
Import Excel file from Python (register to DB)
Use thingsspeak from python
Touch MySQL from Python 3
Operate Redmine using Python Redmine
Operate Filemaker from Python
Use fluentd from python
Access bitcoind from python
Python issue tracker Trac
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
Use MySQL from Python
Run python from excel
Install python from source
Execute command from Python
Operate neutron from Python!
Use MySQL from Python
Operate LXC from Python
Manipulate riak from python
Force Python from Fortran
Use BigQuery from python.
[Python] Read From Stdin
Use mecab-ipadic-neologd from python
Register a ticket with redmine API using python requests
Flatten using Python yield from
Call CPLEX from Python (DO cplex)
Deep Python learned from DEAP
Register DynamoDB x Python / Decimal
Post from Python to Slack
Grammar features added from Python3.6
Cheating from PHP to Python
Make MeCab available from Python3
Information obtained from tweet_id (Python)
OCR from PDF in Python
Run illustrator script from python
Use MySQL from Anaconda (python)
Query Athena from Lambda Python
Access Oracle DB from Python
Study from Python Hour3: Functions
Start / stop GCE from python
Stop Omxplayer from Python code
Switch from python2.7 to python3.6 (centos7)
Connect to sqlite from python
Study from Python Hour4: Object-oriented ①
Python naming convention (from PEP8)
With skype, notify with skype from python!
Use e-Stat API from Python
Execute Python script from batch file
Python: Exclude tags from html data
Use Stanford Core NLP from Python
Try IAM Database Authentication from Python
Call C from Python with DragonFFI
Touch a Python object from Elixir
Hit treasure data from Python Pandas
Using Rstan from Python with PypeR
Get data from Quandl in Python
Python, yield, return, and sometimes yield from
Install Python from source with Ansible
Create folders from '01' to '12' with python
Notes on using MeCab from Python