Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Symfony Jira Issue Notifier Laravel Package

certegroep/symfony-jira-issue-notifier

View on GitHub
Deep Wiki
Context7

Jira Issue Comment Notifier

Provides Atlassian Jira integration for Symfony Notifier. To post comments on Jira Issues.

DSN example

ATLASSIAN_JIRA_DSN=jira-issue://{user}@{access_token}:{your_atlassian_slug}.atlassian.net

where:

  • {user} is the account email or username to post comments by
  • {access_token} is the password or access token for the account
  • {your_atlassian_slug} is the name of your Atlassian URL (probably ending on .atlassian.net)

Adding text to a Message

With this Jira Issue Comment, you can use the JiraIssueComment class:

use CerteGroep\Component\Notifier\JiraIssue\Message\IssueCommentMessage;
use CerteGroep\Component\Notifier\JiraIssue\Message\JiraIssueCommentOptions;

$options = (new JiraIssueCommentOptions())->generic('This is a test...');
$message = (new IssueCommentMessage('KEY-1234', $options));

$texter->send($message);

Multiple supported comment types

Emoji Text

Add a comment with an emoji icon in front.
Use the emoji key/name to represent the right icon. See Jira comment box for all emojis you can use.

$options = (new JiraIssueCommentOptions())->emojiText('tada', 'Fixed it!');

Panels

A grean box with a checkmark before the text message

$options = (new JiraIssueCommentOptions())->success('Fixed it!');

A box with an info-icon before the text message

$options = (new JiraIssueCommentOptions())->info('Did you know...');

An orange/yellow box with an exclamation-triangle before the text message

$options = (new JiraIssueCommentOptions())->warning('Uh oh! Check this out...');

A red box with a cross before the text message

$options = (new JiraIssueCommentOptions())->error('Something went wrong');

Checklist comment

By default the text items with true will appear with a check-mark icon in front and the items with a false flag will appear with a cross-mark icon.

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
]);

Addional you can add some introduction text to the checklist;

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
], 'This is why we did that...');

To change the default true/false icons;

$options = (new JiraIssueCommentOptions())->checklist([
    'List item 1' => true,
    'List item 2' => true,
    'List item 3' => false,
    'List item 4' => true,
], null, 'partying_face', 'worried');

Custom format

The format of message is built by the Atlassian Document Format.

Which is implemented by Damien Harper's ADF Tools. See the documentation for more details about that.

$options = (new JiraIssueCommentOptions())->custom(
    JiraIssueCommentOptions::doc()
        ->paragraph()
            ->text('This is a text line')
        ->end()
);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor