PHP code example of certegroep / symfony-jira-issue-notifier

1. Go to this page and download the library: Download certegroep/symfony-jira-issue-notifier library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

certegroep / symfony-jira-issue-notifier example snippets


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);

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

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

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

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

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

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

$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...');

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

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