Publishing

Publish a Package on Open ITSM Hub

How to publish a package for OTOBO, Znuny, Zammad, or OTRS: openitsmhub.yml at the GitHub root, the same fields in package.yml, or a link to the listing file.

Publish a Package on Open ITSM Hub

This is how you publish a package for OTOBO, Znuny, Zammad, or OTRS. One of the ways is enough. The next refresh copies the title, summary, description, overview, categories, homepage, logo, license, acquisition, important links, and screenshots.

The full specification is Open ITSM Hub format. It includes the JSON Schema and the listing check.

openitsmhub.yml at the GitHub root

Put the file openitsmhub.yml at the top level on GitHub. Not in a subfolder. openitsmhub.mdx and openitsmhub.md count as well. If a YAML file is also present, the YAML file wins.

yaml
title: Quick Close
summary:
  de: Schließt ein Ticket direkt aus der Zoom-Ansicht.
  en: Close a ticket from the zoom view.
full_description:
  de: |
    Eine Schaltfläche in der Ticket-Zoom-Ansicht schließt das Ticket
    mit einem vorgegebenen Status.
  en: |
    A button in the ticket zoom view closes the ticket
    with a preset state.
overview_content:
  de: |
    Die Schaltfläche sitzt in der Ticket-Zoom-Ansicht.

    ::overview-callout{tone="tip" title="Hinweis"}
    Der Status ist fest vorgegeben.
    ::
  en: |
    The button sits in the ticket zoom view.

    ::overview-callout{tone="tip" title="Note"}
    The state is preset.
    ::

    ::overview-steps
    1. Open the ticket
    2. Choose Quick Close
    ::
categories:
  - Workflow Automation
homepage: https://example.com/quick-close
logo: https://example.com/logo.png
license: GPL-3.0
acquisition: free
links:
  - title: Demo
    url: https://www.youtube.com/watch?v=VIDEO_ID
  - title:
      de: Dokumentation
      en: Documentation
    url: https://example.com/docs/quick-close
screenshots:
  - url: https://example.com/zoom.png
    alt: Ticket zoom with Quick Close
    is_primary: true

summary, full_description, and overview_content are language maps. The keys are language codes: de, en, and any other two-letter code, for example fr. If the page language is missing, the hub uses German, then English, then the first text that is present.

A single string, without children, still counts as German. summary_en and full_description_en still count as English. New files use the map.

Acquisition

acquisition says how someone gets the package. A single model name is enough. free and open-source stay free in the catalogue. The other models do not.

  • free — no charge
  • open-source — no charge, under an open license
  • paid — one-time purchase
  • subscription — recurring fee
  • quote — price on request
  • included — part of a maintenance or support contract

price, currency, cycle, url, and note are optional. A quote or a contract can omit the number. price is a number. currency is an ISO code such as EUR. If a price has no currency, the hub uses EUR. cycle is one-time, monthly, yearly, or contract. note is a language map, like summary.

yaml
acquisition:
  model: subscription
  price: 12
  currency: EUR
  cycle: monthly
  url: https://example.com/pricing
  note:
    de: Pro Agent und Monat.
    en: Per agent and month.
yaml
acquisition:
  model: included
  url: https://example.com/pricing
  note:
    de: Ab dem Professional-Vertrag enthalten.
    en: Included from the Professional contract.

is_free: true and is_free: false still work. true becomes free, false becomes paid. If acquisition is also present, acquisition wins.

The form Verify package / Claim ownership writes these fields into the file.

links are the demo, documentation, pricing, changelog, and other pages that belong to the package. Each entry has url and title. title can be a string or a language map. If the title is missing, the hub shows the hostname.

The hub keeps at most 20 links. Further entries are dropped. The same URL is kept once. Only http and https are accepted, and the URL must not contain a username or password. A title is cut after 80 characters. On the package page these links are nofollow.

youtube_demo_url still works. That address becomes a link titled Demo when it is not already in links.

Screenshots

The hub keeps at most 100 screenshots. The same image URL is kept once. Only http and https are accepted. alt is the alternative text. The first image is the primary image when is_primary is missing.

overview_content is Markdown or MDX and is shown on the Overview tab. Markdown is the usual form. Normal HTML stays: p, a, strong, em, ul, ol, h1 through h6, img, table, blockquote, code, pre, div, span, br. Two components are available:

  • overview-callout with tone (info, warning, tip, note) and an optional title
  • overview-steps around a numbered list

script, iframe, object, embed, style, forms, and other active HTML tags are removed. So are onclick and javascript: links. Other components are removed as well. Text inside code blocks stays.

The same file updates an existing listing. Save it at the root. The new fields appear on the next refresh.

Markdown or MDX

The file name is openitsmhub.md or openitsmhub.mdx. The front matter is the same YAML. The text below the front matter is overview_content for lang. Without lang, that text is German.

md
---
title: Quick Close
lang: en
summary:
  de: Schließt ein Ticket direkt aus der Zoom-Ansicht.
  en: Close a ticket from the zoom view.
overview_content:
  de: |
    Die Schaltfläche sitzt in der Ticket-Zoom-Ansicht.
acquisition: free
---

The button sits in the ticket zoom view.

::overview-steps

1. Open the ticket
2. Choose Quick Close
   ::

The same fields in package.yml

For OTOBO and Znuny, package.yml can carry the same fields under openitsmhub. opm-build does not copy that block into the OPM. If openitsmhub.yml is also in the root, that file wins.

yaml
name: QuickClose
version: 1.0.0
openitsmhub:
  title: Quick Close
  summary:
    de: Schließt ein Ticket direkt aus der Zoom-Ansicht.
    en: Close a ticket from the zoom view.
  acquisition: free

Or place a link on your website. The link belongs on the page where you describe the package. That page must mention OTOBO, Znuny, Zammad, or OTRS. A footer link, or a link on a page that does not describe the package, does not count.

href points at your package page in the catalogue. Replace quick-close with your listing slug. data-openitsmhub-yml is the public URL of the listing file. The file can have any name and can live on any public host.

html
<a
  href="https://openitsmhub.com/packages/quick-close/"
  data-openitsmhub-yml="https://cdn.example.com/listings/quick-close.yaml"
>
  Open ITSM Hub
</a>

A path on the same website still works. The hub resolves it against that page:

html
<a
  href="https://openitsmhub.com/packages/quick-close/"
  data-openitsmhub-yml="/files/quick-close.yaml"
>
  Open ITSM Hub
</a>

File hosted on Open ITSM Hub

On the package page, Verify package / Claim ownership opens a form. The form builds openitsmhub.yml.

Choose Host the file on Open ITSM Hub when you do not upload the file yourself. The link then points at the file the hub publishes for the package:

html
<a
  href="https://openitsmhub.com/packages/quick-close/"
  data-openitsmhub-yml="https://openitsmhub.com/openitsmhub/packages/quick-close.yml"
>
  Open ITSM Hub
</a>

Download edits from the form and publish them on GitHub or at your own URL. The next refresh replaces the hosted file.

The next refresh opens the product page, follows the URL in data-openitsmhub-yml, and copies the file. For a skin, href points at /skins/<slug>/. The skin page must name OTOBO, Znuny, Zammad, or OTRS as well. The hosted skin file is https://openitsmhub.com/openitsmhub/skins/<slug>.yml.

Visibility

After the refresh, the package appears in the matching directories for OTOBO, Znuny, Zammad, and OTRS, and in search.

Skins use the same file. Details are in Skin development.