Paco1863 Posted May 31, 2011 Report Share Posted May 31, 2011 Is there a way to set multiple JIRA project keys (this can be done in JIRA) to multiple BranchPrefix? The idea is to assign Jira project keys then have each key assigned to a branch prefix associated to a specific repository. thanks Link to comment Share on other sites More sharing options...
deanaug Posted June 2, 2011 Report Share Posted June 2, 2011 If possible, we'd like to do a similar thing, multiple branch prefixes BUT all using the same JIRA project key. We have two types of JIRA issues; Software Change Requests (SCR) for planned changes to code docs etc, and Software Problem Reports (SPR) for bugs found during testing etc. For branch naming, it would be great to name branches for SCRs as scrxxxx and branches for SPRs as sprxxxx. Thanks! Dean Link to comment Share on other sites More sharing options...
miller Posted June 2, 2011 Report Share Posted June 2, 2011 Hi Paco, yes multiple projects are possible with the Plastic SCM integration. In Plastic SCM-->Preferences--Issue tracking Set Project key value to: MULTIPLE_PROJECTS see screen dump. cheers, Miller Link to comment Share on other sites More sharing options...
deanaug Posted June 6, 2011 Report Share Posted June 6, 2011 Tried using multiple branch prefixes, can't find a way to make it work (v187.22). This would probably involve the following changes to the client issue tracking preference setting: - Allow user input of multiple prefixes (comma-separated list in existing text box, or combo text box?) - Array of prefix strings, vs. the current single string - Check of each entry in array for associated JIRA issue, vs. the current single string Thanks! Dean Link to comment Share on other sites More sharing options...
miller Posted June 7, 2011 Report Share Posted June 7, 2011 Hi Dean, Currently we dont support multiple branch prefix. however it could be good to have, Ill add it to our list and see what we can do in the future releases. Miller Link to comment Share on other sites More sharing options...
deanaug Posted June 7, 2011 Report Share Posted June 7, 2011 Hi Miller, I agree, this falls under the category of "nice to have". The existing functionality will work just fine for what we need from Plastic / JIRA; different prefixes would be an even better "at a glance" view from the branch explorer on the nature of the task the branch was created for. Thanks for the response! Dean Link to comment Share on other sites More sharing options...
SilverKnight Posted March 23, 2013 Report Share Posted March 23, 2013 I note that this feature request happened a couple of years ago. I've got the latest 4.x version of Plastic, but sadly, this feature still isn't present. Is it still a possibility for future versions? Given that with Plastic, the idea is to use a repository per project, it seems strange that it isn't possible to link that particular project in Jira with the repository (in a 1 to 1 relation). I tried an example setup against a project, then created the appropriate link to the project with the repository. Everything worked well enough (I could see the Jira information linked to the branch for the particular "task" I created in Jira) - I then attempted to switch it to MULTIPLE_PROJECTS in the project key, leaving everything else the same - which promptly LOST the link to the Jira issue. When using the MULTIPLE_PROJECTS project key, does the branch need to follow a different format? e.g. my project in Jira is "GL" and I have an issue 1 - so the branch I created was GL001. When Project Key = GL, the link shows up, but when it is "MULTIPLE_PROJECTS" - I get no link. How does the MULTIPLE_PROJECTS setting determine which Jira project to find the issue in? Link to comment Share on other sites More sharing options...
manu Posted March 25, 2013 Report Share Posted March 25, 2013 Hi! Can you post a screenshot of your Plastic SCM Jira configuration panel? Thanks! Link to comment Share on other sites More sharing options...
SilverKnight Posted March 25, 2013 Report Share Posted March 25, 2013 Here is the Plastic SCM Configuration screen for Jira as discussed above Link to comment Share on other sites More sharing options...
SilverKnight Posted March 25, 2013 Report Share Posted March 25, 2013 I believe I found the answer to this question: http://www.plasticscm.net/index.php?/topic/906-jira-5-support/?p=6596 While it applies to a different version of Jira, it does in fact function. I had to rename my existing branches after changing to MULTIPLE_PROJECTS. I also changed the branch prefix from a project centric naming (GL) to someting that identifies the branch was created for linking with jira issues (I used JIRA_ just like the linked post above) Cudos to the community for answering this one. Just took a bit of digging to find it. Format to create the branch name is %branch prefix%&project key&-%number% ex: if branch prefix = JIRA_ project short name = GL issue to link = 1 Then the branch name to create is: JIRA_GL-1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.