Using Jira.SDK in Rhino.Common

Hi there,

I am trying to connect Jira to Rhino.
To test the Jira.SDK package I found I tested the following:

using Jira.SDK;

var jira = new Jira.SDK.Jira();
jira.Connect(path, user, password);
var issue = jira.GetIssue(key);

Console.WriteLine(issue.TimeTracking.TimeSpent.ToString());
Console.WriteLine(issue.Summary);
Console.WriteLine(issue.Status.Name);

So this works fine. The target framework for this console application was 7.0, which I know is not what Rhino used so far.
And this is the problem I am facing now.
When I add a reference to this package and try to run it, it does not do anything.

The issue with .NET Core vs .NET Framework I understand, yet very rudimentary.
But I am quite sure that the package version and the version Rhino is using is the problem, right?
But clearly I have no idea how to solve it. :slight_smile:

Any ideas?

Thanks,
T.

So I have an update here.
It works perfectly fine in Rhino7, but does not work in Rhino8.

So might this be an issue of packages (e.g. Newtonsoft Json) interfering with anything?
And if yes, how could I find this interference?

Hi,

what is the error you receive? Often they seem to be cryptic, but as soon as you understand the error message it is obvious what you need to do next. If I would guess, I believe it has something to do with the fact that Rhino8 runs on Net Core 7

Other than, I’m using Jira on a daily basis, but just out of curiosity, what problem are you trying to solve?

If you are facing compatibility issues, another solution would be to let an dedicated console app communicate with Rh/Gh using any form of InterProcessCommunication(LocalTCP, Named Pipes, Files etc.)

1 Like

Hi @TomTom,

Thanks for the input first of all.

There is no reaction at all.
If I put a breakpoint in the first line of the command nothing happens. It does not even start the command.

I want to connect jira issues to our models and display them there and enable users to easily create it comment issues from rhino.

Are you sure that it’s even loaded? Ensure to compile it for Net7, or activate compatibility mode for Framework 4.8 in Rhino 8, and also check if the library is within valid search paths…

1 Like

Hi @TomTom

Are you sure that it’s even loaded?


I installed the package. But I am not sure if this is what you mean by if it’s even loaded…

Ensure to compile it for Net7, or activate compatibility mode for Framework 4.8 in Rhino 8, and also check if the library is within valid search paths…

I think this goes beyond my capabilities. Would it be asked too much to explain this a bit more in detail?

@TomTom
I think I got a very important update.
I detected that in the debug folder for net7.0 the dlls connected to the atlassian.SDK were not copied. After copying them it works!

Does this have to do with the question if it’s even loaded?

Yes, I have suspected that your plugin or one of the dependencies was not in a folder which is considered to load from. Usually you should always be able to attach a debugger and hit a breakpoint given that the pdb is up-to-date. With DNSpy you can even attach a debugger, without any pdb’s present. This can also be quite useful in such scenarios.

Okay, super.
I will try to dig into what you suggested.
A question: any idea why the files were not copied?

I had to load the JIRA SDK assemblies manually and make sure all dependencies were copied into the Rhino plugin folder so it wouldn’t throw missing reference errors at runtime.