Skip to main content

JIRA Target

The JIRA target posts to a JIRA incoming webhook whenever an automation fires, so that a JIRA automation rule can create a task. Use it to raise issues automatically, for example when a dataset is late.

IdNameTemplateIcon
odsl.jiraCreate a JIRA taskcreate a JIRA task at [url] using [template]clipboard-plus text-primary

The target works with any service and any action. It supports property-change filtering but not @transformer.

Inputs​

InputDescription
urlThe JIRA incoming webhook URL
templateA mustache template for the task, can be left empty
Message formatting

In the current automation handlers, the triggering data is posted to url as JSON and the template input is not applied. The receiving JIRA webhook gets the raw JSON data, not a formatted message. This target also does not support @transformer. Set template because the target asks for it, but do not rely on it to format the task.

tip

Because the data arrives as JSON, configure your JIRA automation rule to read the fields it needs from the incoming JSON.


Example: raise a JIRA task when a dataset is missing​

a = AutomationBuilder("dataset", "private", "ICE.NDEX.NLB").build()

c = SimpleObject()
c.source = "private"
c.service = "dataset"
c.id = "ICE.NDEX.NLB"
c.action = "missing"
conds = []
conds.add(c)
a.conditions = conds

a.target = "odsl.jira"
a.template = "When 'ICE.NDEX.NLB' is missing, create a JIRA task at [url] using [template]"
a.icon = "clipboard-plus text-primary"
a.properties.url = "https://automation.atlassian.com/pro/hooks/your-webhook-id"
a.properties.template = ""
a.enabled = true
save ${automation:a}