btey / openproject-gitlab-integration

OpenProject module for integration with Gitlab
GNU General Public License v3.0
83 stars 19 forks source link

gitlab comments not work #58

Open MorganReid opened 6 months ago

MorganReid commented 6 months ago

Followed the README.md

Clone from the Openproject Repo: git clone https://github.com/opf/openproject.git --branch=stable/13 --depth=1 .
Clone the plugin inside the modules folder: git clone https://github.com/btey/openproject-gitlab-integration.git --depth=1 modules/gitlab_integration
Apply the changes below in Gemfile.lock and Gemfile.modules (the same ones you would do in a manual install).
Build the container: docker build -t openproject-docker --file=docker/prod/Dockerfile .

Now run the image following the official documentation. The version of openproject is 13.2.0. Gitlab's webhook is configured as follows: image

Create a new issue on gitlab, the title is OP#94 image

Open the gitlab tag of 94 workpackage in openproject and i can see the issue just created. image

The problem is that I added comments under this issue in gitlab, but openproject does not display them synchronously. image

But if i modify the status of the issue (such as close), OpenProject can synchronize it. image

btey commented 5 months ago

Hi @MorganReid

The ability to add comments in the Activity tab (or WP history) depends on the user rights. In this case depends on the "Gitlab" bot user created in OP.

Check the log file of OP for any error message. Try also to login as the "Gitlab" bot user in OP and try to add a comment in the respective project that you are trying to test/link from Gitlab. The gitlab bot user should be able to add comments, otherwise you'll need to check the user rights assigned.

Hope it helps.