Jump to content

Plastic, Jira Cloud, and Jira Next-Gen project integration status


Mikael Kalms

Recommended Posts

Hi,

I have been testing how well Plastic SCM's Jira integration works with Jira Cloud and Jira's Next-Gen projects.

Here is what I have so far:

* Configuring the Jira integration using the Plastic UI behaved weirdly: If I went into Preferences / Issuetrackers and configured a Jira integration and pressed OK, the configuration would be active, there would be a jira.conf file written to my harddrive, but if I opened up Preferences / Issuetrackers again I would not see the currently-active configuration in the GUI. Solution: Configure once (to get a jira.conf file), then proceed from there by modifying the jira.conf file manually.

* For Jira Cloud, the 'username / password' should be an email address / an API token.

* It is reasonably straightforward to set up Plastic SCM to be able to create branches from issues. This works fine with Next-Gen projects.

* When creating a custom field for Plastic SCM information, it is difficult to find the ID of the custom field in a Next-Gen project. I needed to talk directly to Jira's REST API to find it.

* Plastic SCM cannot write information about check-ins to Jira issues in Next-Gen projects. This is because Next-Gen projects do not yet support Text (multi-line) fields; the only text field that is available currently is Text (single-line), which is limited to max 255 chars in length; this is not sufficient for a single entry from Plastic SCM. This is the kind of error that you will see in the log if you try this:

ERROR jiraextensionrest - There was a problem putting to '/rest/api/2/issue/JIR-8': The remote server returned an error: (400) Bad Request.
ERROR jiraextensionrest - Response from the server: {"errorMessages":[],"errors":{"customfield_10105":"The entered text is too long. It exceeds the allowed limit of 255 characters."}}

* Plastic SCM can transition JIRA ticket statuses based on commit message keywords. This is easy to set up and works with Next-Gen projects.

* There are some recurring error messages in the logs, but I don't know what impact they have:

ERROR jiraextensionrest - There was a problem getting '/rest/api/2/mypreferences': The remote server returned an error: (404) Not Found.
ERROR jiraextensionrest - Response from the server: {"errorMessages":["key not found: 'plastic.diffchangeset.url'"],"errors":{}}
ERROR jiraextensionrest - There was a problem getting '/rest/api/2/mypreferences': The remote server returned an error: (404) Not Found.
ERROR jiraextensionrest - Response from the server: {"errorMessages":["key not found: 'plastic.formatdata'"],"errors":{}}

 

 

Another observation: In the "Create new child branch from task" dialog, the "Mark as open in issue tracker" checkbox is cleared by default, its setting is not remembered between multiple branch creations, and the Plastic admin cannot control this centrally. I'm not sure that this is the default that you want. I also suspect that the default of this setting would be useful to have in <issuetracker>.conf.

 

From here on, we will either transition to Jira Classsic projects (so that we can enable Plastic SCM to write check-in information to the issues), or we will not use the Plastic-Jira integration.

  • Like 1
Link to comment
Share on other sites

  • 6 months later...
  • 4 weeks later...

After doing some testing this is a major issue for us.  Our company is dedicated to using Jira..  but will only allow us to use Next-Gen projects.  Using Classic projects is not even an option until the end of the year.
 

It would be considerably better if you wrote a plug-in for Jira to accommodate Next-Gen projects.

Link to comment
Share on other sites

  • 3 months later...

Hi,

Could you confirm the only issue is with JIRA Next-Gen projects (in JIRA cloud) and you are using the last Plastic client version? We have recently fixed some JIRA related issues and I want to be sure you are not affected by them:

 

Quote

[Bug] 9.0.16.4182
All platforms - Plastic: JIRA extension didn't list issues.
JIRA platform was unable to list issues when creating a new Plastic branch. Now it's fixed.

 

Quote

 

[Bug] (pending to release)

Issue tracker extensions - Jira: fixed connection failure for hosted Jira servers

A fix we made in 9.0.16.4182 to handle email addresses in the "User name" field for Jira Cloud unfortunately broke hosted Jira servers (for which you specify the username, not the email address). We fixed that, and both types of Jira server will now work.

 

Regards,

Carlos.

Link to comment
Share on other sites

  • 3 weeks later...

FWIW: I recently tried to integrate to Jira Cloud "next gen". The configuration's "test connection" works, but the list of tasks/issues when creating a child branch is empty. It seems like it "almost works", and the log file had some jira-related errors (see below), that may be relevant.

From the plasticscm log file:
2020-06-23 14:15:34,225 DESKTOP-0L9ID4V\jyabrow ERROR jiraextensionrest - There was a problem performing GET https://beyondview.atlassian.net/rest/api/2/user/search?username=: The remote server returned an error: (400) Bad Request.^M
2020-06-23 14:15:34,233 DESKTOP-0L9ID4V\jyabrow ERROR jiraextensionrest - Response from the server: {"errorMessages":["The username or property query parameter must be provided"],"errors":{}}^M

Link to comment
Share on other sites

Hi,

In our previous tests, there is no problem when listing the tasks from next gen JIRA projects. The problem is when you perform a cehckin in the linked branch, the information is not logged in the JIRA task because we use multiline text fields and they are not still available in next gen projects.

Are you using the API token as the password?

https://www.plasticscm.com/documentation/extensions/plastic-scm-version-control-task-and-issue-tracking-guide

Regards,

Carlos.

Link to comment
Share on other sites

We are at the moment solution to make it work in Plastic. Note that the main problem is nextgen projects doesn't support multi-line text fields so we cannot log the checkin information in the JIRA task. We are at the moment studying a different approach that should be ready in the following weeks.

https://community.atlassian.com/t5/Jira-Software-questions/How-to-create-multi-line-text-field-in-next-gen-project/qaq-p/948545

Sorry for the inconveniences,

Carlos.

Link to comment
Share on other sites

Hi Carlos,

I think understand the multi-line text field problem, and that my problem was a more basic connection issue.  We have been getting by on FogBugz without logging check-ins, partly because our team is small, but also because checkins and merges to don't necessarily mean the work is done, so we haven't seen the need to trigger SCM status changes with PlasticSCM events.  Having PlasticSCM branch names match issue id's has been enough for us.  However, since the reason we're looking at Jira is to transcend FogBugz' limitations, it could definitely be useful to have that info available in Jira.  I'll look forward to your fix for the multi-line text field to see how we can make use of checkin event info in Jira--it might be especially helpful as we expand and grow our team.

Fwiw, I was able to get around the "issues not listing" problem, by deleting the issuetrackers subdirectory in my profile, restarting PlasticSCM and re-entering the Jira connection info from scratch.  There seemed to be a weird situation where Plastic client wrote Jira connection info to a AppData\Local\plastic4\issuetrackers\mycompany@cloud\... subdir, but was reading from a legacy config in AppData\Local\plastic4\issuetrackers\mycompany@local\...  Once I cleared that out and started from scratch, Plastic was able to list the Jira issues with no problem.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

We have released the following task:

[New] 9.0.16.4407
Issue tracer extensions - JIRA: Next-gen projects now supported

Next-gen projects do not support the type of custom field we use for the JIRA integration.

To resolve this, we have added the option to have the checkin info added to the JIRA issue as a comment.

Leave the "Custom field ID" blank in your Plastic Issue Tracker configuration to have checkin info added as a comment.

Regards,

Carlos.

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 5 months later...
On 11/19/2020 at 4:17 PM, María said:

Hi!

We just added a note about this Next-gen project configuration: https://www.plasticscm.com/documentation/extensions/plastic-scm-version-control-task-and-issue-tracking-guide#Client-configuration-JIRA-Parameters.

Hope this helps!

Regards,

María

It would be nice if it worked more in reverse. 

Source code apps | Atlassian Marketplace

There's a ton of git integration but nothing for plastic 😕

Fuller integration would be very valuable. Like all of these seem to be able to work with just about everything but plastic. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...