These are chat archives for allegro/ralph

31st
Jul 2017
sbadan2
@sbadan2
Jul 31 2017 14:24
Hello. Ralph is advertised to integrate with jira, however the commands that are used in the documentation don't work anymore. Was jira integration removed in version 3.x ?
✪ vi4m Marcin Kliks
@vi4m
Jul 31 2017 14:27
@sbadan2 it depends. what do you need this integration for?
sbadan2
@sbadan2
Jul 31 2017 14:41
@vi4m , I would want to refer assets from ralph in jira, and then in ralph to view tickets related to a CI. Would that be possible? The stuff from here would work as well: http://ralph.readthedocs.io/en/latest/optional_modules/cmdb/overview.html#jira-integration
In github it says: "integrate with change management process using JIRA integration" - https://github.com/allegro/ralph . Is there a plugin or something? Thank you!
Roman Prykhodchenko
@romcheg
Jul 31 2017 14:44
@sbadan2 Jira integration works one way only. That means it's possible to see changes from Jira in Ralph, however, in order to be able to pick objects in Jira, you'll need a plugin on Jira's side
✪ vi4m Marcin Kliks
@vi4m
Jul 31 2017 14:44
some 3rd party companies provide jira plugin, for example: https://www.intenso-group.com/pl/kontakt/
Roman Prykhodchenko
@romcheg
Jul 31 2017 14:45
sbadan2
@sbadan2
Jul 31 2017 14:45
@romcheg , this one way only, how to configure it ?
Roman Prykhodchenko
@romcheg
Jul 31 2017 14:46
There is an API endpoint where you can POST issues from Jira
Jira can automatically do that using its webhooks
One option is to point it directly to Ralph, another -- to Hermes, if it's used in your set up
In ralph's settings there is a configuration attribute called HERMES_CHANGE_MGMT_TOPICS. Bye default it is set to hermes.changemanagement.changes
sbadan2
@sbadan2
Jul 31 2017 14:50
Thanks @romcheg , let me search and read the docs.
Roman Prykhodchenko
@romcheg
Jul 31 2017 14:50
If you point Jiira directly to Ralph, you can set up webhooks to POST issues to http://RALPH-HOST:PORT/hermes/events/<VALUE OF HERMES_CHANGE_MGMT_TOPICS>
If you use Hermes integration, just utilize the topic name from the configuration option mentioned above.
No problem @sbadan2
Unfortunatelly we did not document this feature well enough. I have created a ticket for that a few moments ago, so everyone can use change management faciulities in Ralph
@sbadan2 another thing: since different vendrors or Jira plugins store information about ralph objects in a different way, Ralph won't attach base objects to changes automatically.
You will need to set up the CHANGE_MGMT_BASE_OBJECT_LOADER option by providing your own Python module that can load Ralph objects from your Jira message.
Roman Prykhodchenko
@romcheg
Jul 31 2017 14:55
That's pretty easy to do. However, if you have any difficulties with that, please poke us here when you come to the point when you're testing that. We will gladly help you.
sbadan2
@sbadan2
Jul 31 2017 14:56
Thanks @romcheg . I'm saving this conversation, and will try it.