dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

JIRA Integration doesn't work and it's not clear what values to enter

Open DanOrsborne opened this issue 1 year ago • 1 comments

Current Behavior

The integration doesn't work at all using username and password or API key or user and api key Consider also making the instructions clearer and having a 'Test connection' button on the setup page to confirm the details are correct.

Steps to Reproduce

1.Open JIRA page 2. Add credentials and URL for JIRA 3. Go to the Alerts page and enter the key and ticket type 4. Press Test

Expected Issue is created in JIRA

Actual Nothing created and no feedback on the screen about the issue

Expected Behavior

Expected Issue is created in JIRA

Dependency-Track Version

4.7.x

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Google Chrome

Checklist

DanOrsborne avatar Oct 10 '24 07:10 DanOrsborne

Looking through the logs the error is:

2024-10-10 07:58:36,395 WARN [JiraPublisher] No JIRA ticket type configured; Skipping notification (PublishContext{notificationGroup=POLICY_VIOLATION, notificationLevel=INFORMATIONAL, notificationScope=PORTFOLIO, notificationTimestamp=2024-10-10T07:58:36.39549595Z, notificationSubjects={component=Component[uuid=94f87321-a5d1-4c2f-b2fe-95165debebc6, group=null, name=componentName, version=componentVersion], project=Project[uuid=c9c9539a-e381-4b36-ac52-6a7ab83b2c95, name=projectName, version=projectVersion]}}) [requestId=435c2ee7-9820-4bff-9334-43f99bd35fd6]

But the value is set in the Notification settings to BUG

DanOrsborne avatar Oct 10 '24 08:10 DanOrsborne

Same for me: "[JiraPublisher] No JIRA ticket type configured; Skipping notification..."

Even when specifying the issue type in the UI, the config object has not the properties set correctly.

JiraPublisher.java:

 public void inform(final PublishContext ctx, final Notification notification, final JsonObject config) {
        if (config == null) {
            LOGGER.warn("No publisher configuration provided; Skipping notification (%s)".formatted(ctx));
            return;
        }

        jiraTicketType = config.getString("jiraTicketType", null);
        if (jiraTicketType == null) {
            LOGGER.warn("No JIRA ticket type configured; Skipping notification (%s)".formatted(ctx));
            return;
        }

        jiraProjectKey = config.getString(CONFIG_DESTINATION, null);
        if (jiraProjectKey == null) {
            LOGGER.warn("No JIRA project key configured; Skipping notification (%s)".formatted(ctx));
            return;
        }

        publish(ctx, getTemplate(config), notification, config);
    }

dan-caprioara avatar Nov 21 '24 12:11 dan-caprioara

I also have the same issue

Kringe07 avatar Nov 21 '24 13:11 Kringe07

I am having same issue. Has anyone got solution for this? Any new patch is coming to fix this?

valamiyanew avatar Dec 10 '24 16:12 valamiyanew

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jan 12 '25 10:01 github-actions[bot]