content ¶
content
takes a string, which gets interpreted as rst-code for the need-content area.
Jinja support is also available, so that service data is available and can be accessed like
{{data.description}}
.
Example for a Codebeamer configuration:
my_content = """
Content from Codebeamer Issue
-----------------------------
``{{data.description}}``.
This is assigned to **{{data.assignedTo[0].name]}}**.
`Link to source <http://my_server/issue/{{data.id}}>`_
"""
needs_services = {
'codebeamer': {
# ... some other values
'content': my_content
}
}
The set options for the
needservice
are available under
options
. Example:
my_content = """
Executed query: {{options.query}}
{{data.description}}
{% if options.prefix == "TEST_" %}
**TEST TICKET**
{% endif %}
"""