I want to limit commit access to a repository based on the JIRA issue in the commit message. I thought driving it from that config screen would be a good idea. The idea is I link foo-repo to the foo project on the fisheye config screen, then if a user trys to commit to the foo-repo using a JIRA, BAR-101, I would do a query, see BAR is not linked to foo-repo and reject the commit.
Community moderators have prevented the ability to post new answers.
You should be able to use this REST resource on your FishEye instance in order to get a list of projects associated with a particular repository
<FISHEYE_BASE_URL>/rest/applinks/1.0/entitylink/list/com.atlassian.applinks.api.application.fecru.FishEyeRepositoryEntityType/<REPO_NAME>?typeId=com.atlassian.applinks.api.application.jira.JiraProjectEntityType
For the reverse lookup (list of repositories linked to a project) on your JIRA server use this REST resource
<JIRA_BASE_URL>/rest/applinks/1.0/entitylink/list/com.atlassian.applinks.api.application.jira.JiraProjectEntityType/<PROJECT_KEY>?typeId=com.atlassian.applinks.api.application.fecru.FishEyeRepositoryEntityType
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.