Jump to content


Jira tickets within braces

swarm jira

  • Please log in to reply
5 replies to this topic

#1 thunderbird

thunderbird

    Member

  • Members
  • PipPip
  • 16 posts

Posted 12 May 2015 - 05:46 PM

Thank you so much for providing an integration solution between swarm and jira.  Was able to seamlessly integrate JIRA and swarm as instructed in the link http://www.perforce....jira-meet-swarm along with another workaround mentioned in Geoff's post: http://forums.perfor...sl-requirement.

Problem statement:

We have a tendency in our system to mention the JIRA tickets within square braces and the users have been following it for years. While setting up the integration between JIRA and swarm, i noticed that Swarm doesn't honor the tickets mentioned within square braces.

Our typical perforce commit message looks like:

Z PROD [ABC-16136] (Tbr Jen)  blah blah blah

Swarm integrates JIRA well for the below commit message without the braces

Z PROD ABC-16136 (Tbr Jen)  blah blah blah



Would like to know if there is a viable solution

Swarm version: 2014.4

#2 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 12 May 2015 - 08:38 PM

Hello,

Glad you had a successful install of JIRA and Swarm. To better understand the process you have, please let us know the following:

1] What do you mean when you mention "Swarm doesn't honor the tickets mentioned within square braces" - is there not a working URL that points to the issue in Jira?

2] Did you add a 'jira' section to the data/config.php file under the install directory? For example, see the article 'Swarm JIRA plugin usage':

http://answers.perfo...rticles/KB/3894

#3 thunderbird

thunderbird

    Member

  • Members
  • PipPip
  • 16 posts

Posted 12 May 2015 - 09:39 PM

1) That's right, NO link is created
2) Yes, the jira section was added to config.php

Look into the attached screenshot.

There are totally 10 changes in the screenshot..

Changes in the box 1,2,4,5, 9 and 10, which was created to test if the integration works without the square braces, navigates to JIRA well. However, NO LINK is established for the JIRA IDs marked in square brackets for the changes 3,6,7 and 8.

Let me know if you need any more information

#4 thunderbird

thunderbird

    Member

  • Members
  • PipPip
  • 16 posts

Posted 12 May 2015 - 09:46 PM

Attaching the file again from Firefox browser..

Attached Thumbnails

  • swarm.jpg


#5 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 13 May 2015 - 12:08 AM

Thanks for the screen-shot and for confirming about the JIRA link and config.

I noticed change 46322 with brackets and the link is not enabled, while the other change (46321) without brackets around the JIRA ID has an enabled link.

I am wondering if the 'projects' in the jira array can be modified to include and acknowledge the brackets around the project ID.

 'projects' => array(
'SW', 'PROJONE'

I am referring to the 'jira' section to the data/config.php file under the install directory. If this does not work, I wonder if a change trigger can be used to strip the brackets from around the JIRA ID in the changelist description after it is committed. That way even if users entered the brackets, it would not affect the SWARM/JIRA interaction afterwards.

REFERENCES

http://www.perforce....ipting.triggers

#6 thunderbird

thunderbird

    Member

  • Members
  • PipPip
  • 16 posts

Posted 18 May 2015 - 04:11 PM

Thanks, I had the same work workaround in mind if there was no direct solution to the problem. Can we treat this as a BUG and have it resolved in the upcoming releases?

I may have to try out if its possible to modify the project array in config.php



Also tagged with one or more of these keywords: swarm, jira

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users