Skip to main content

Synchronized Gitlab Issues into Microsoft Project

Project description

Build Status PyPi Version PyPi Downloads Python Versions Wheel Build Project Status Code Style Black Checked with mypy pre-commit License: MIT Documentation Status Average time to resolve an issue Percentage of issues still open

SyncGitlab2MSProject

Sync Gitlab Issues into a Microsoft Project File. Use it if you use MS Project for the general project planning but want to keep the Issues in Gitlab as a part of your project planning to follow the process progess.

Currently only Information from Gitlab Issues are inserted and updated within the Project File. Changes in synchronised fields will be overwritten.

The following MS Project attributes are synced (overwritten) from gitlab:

  • Name
  • Notes (from Description)
  • Deadline (from Due Date)
  • Work (from Time Estimated)
  • Actual Work (from Time Spent)
  • Percent Complete (if Tasks given for issue, otherwise only 0% and 100% [for closed])
  • Text28 (the list of labels)
  • Text29 (the URL to gitlab issue)
  • Text30 (the reference to the issue is stored there)
  • Hyperlink (link/URL to gitlab issue)

Not yet implemented but planned:

  • Resources (from Assigned)

Moved issues will be handled if the group selected and the issue was moved within the group. Problem is that accessing issues only by ID is just allowed for admins.

Requirements

This project runs only in an Windows Environment with Microsoft Project installed.

Please note: This Script has been tested only mit Microsoft Project 2016. It cloud be, that some of the API has changed in newer versions. If you run into any troubles with a new version, please open an Issue.

Usage

usage: sync_gitlab2msproject [-h] [--version] [-v] [-vv] [--gitlab-url GITLAB_URL] [--gitlab-token GITLAB_TOKEN] {project,group} gitlab_resource_id project_file

Sync Gitlab Issue into MS Project

positional arguments:
  {project,group}       Gitlab resource type to sync with
  gitlab_resource_id    Gitlab resource id to sync with
  project_file          Microsoft Project File to sync with

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -v, --verbose         set loglevel to INFO
  -vv, --very-verbose   set loglevel to DEBUG
  --gitlab-url GITLAB_URL
                        URL to the gitlab instance i.e. https://gitlab.your-company.com
  --gitlab-token GITLAB_TOKEN
                        Gitlab personal access token

Quickstart

  1. Optional: Install pipx
  2. Install the package pipx install SyncGitlab2MSProject (or use pip if you don't like pipx)
  3. Push the gitlab Issue to your MS Project file: sync_gitlab2msproject --gitlab-url https://gitlab.company.com --gitlab-token <your_token> group <your_group_id> ms_project_file.mpp

Open Hyplerlink Problems

If you have troubles that the wrong issues are opened once you click on a Hyperlink use the following VBA Script as a workaround. Simply add the VBA script to your Ribbon and it will open all Hyperlinks of the selected tasks.

Option Explicit

Private Declare Function ShellExecute _
  Lib "shell32.dll" Alias "ShellExecuteA" ( _
  ByVal hWnd As Long, _
  ByVal Operation As String, _
  ByVal Filename As String, _
  Optional ByVal Parameters As String, _
  Optional ByVal Directory As String, _
  Optional ByVal WindowStyle As Long = vbMinimizedFocus _
  ) As Long

Public Sub OpenUrls()

    Dim lSuccess As Long
    Dim T As Task
    Dim Names As String
    For Each T In ActiveSelection.Tasks
        lSuccess = ShellExecute(0, "Open", T.HyperlinkAddress)
    Next T
End Sub

Note

This project has been set up using PyScaffold 3.2.3. For details and usage information on PyScaffold see https://pyscaffold.org/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SyncGitlab2MSProject-0.0.6.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

SyncGitlab2MSProject-0.0.6-py2.py3-none-any.whl (20.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file SyncGitlab2MSProject-0.0.6.tar.gz.

File metadata

  • Download URL: SyncGitlab2MSProject-0.0.6.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.4

File hashes

Hashes for SyncGitlab2MSProject-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c0e34242a020ca6fbedfad351167cfd1254aea4fdb3d7f6b745800b2d94a28b6
MD5 a0c942409d5ffd1841e53491c1ca8cc1
BLAKE2b-256 279af27b89b910ed8e949f0612ad5e3bba5b930a75d451fd90f36b5a623659b5

See more details on using hashes here.

File details

Details for the file SyncGitlab2MSProject-0.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: SyncGitlab2MSProject-0.0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.4

File hashes

Hashes for SyncGitlab2MSProject-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cc2aaa6a07351a0337fb4428000fd6def604f8f0a8a1704c0dfec56e87eabc1f
MD5 2f424d09fe28f52d4c8349a659d585a6
BLAKE2b-256 2cf295320db1756800f7707a55318a041cbe5ac41e9c39d6119f8dfb9d197547

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page