mdevilliers opened a new issue, #7241:
URL: https://github.com/apache/incubator-devlake/issues/7241

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Use case
   
   As a Gitlab user I would like to see which Merge Requests contributed to 
resolving Issues.
   
   
   ### Description
   
   Our developers usually add the issue number (in our case JIRA) to either the 
title or the description of a Merge Request.
   
   In the `_raw_gitlab_api_merge_requests` table I can see the API request 
currently captures that information 
   
   ```
   {"id":...,"iid":...,"project_id":...,"title":"ABCD-6514 fixed for view, 
program and client","description":"Related to ABCD-6514","state":"merged"... 
"source_branch":"..." ...}
   ````
   
   Our JIRA instance has the board with the prefix "ABCD-".
   
   Similar to the functionality of the Github plugin the Gitlab plugin would 
use a configuration value that defines a regular expression to parse out the 
issue string (in this case any string starting "ABCD-") from the title and 
description and add a record to the table `pull-request-issues`.
   
   Questions 
   - Is it valid for the `pull-request-issues` to map multiple pull requests to 
a singular issue?
   - What to do when there isn't an issue already imported? 
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to