UiPath.JiraSoftware.Models.Issue is an array object type and i need to convert into a string value

I am using Jira Software Integration for UiPath and I downloaded it from UiPath GO!. I am using Search JQL query and in result I am receiving this object type.

UiPath.JiraSoftware.Models.Issue for each item in issues

I need to convert this type of object to a sting value

Can I have a view on the property panel if possible
Cheers @Rajat_16

Hey @Palaniyappan, Thanks for replying. I got the solution :slight_smile:

1 Like

Awesome
@Rajat_16

Hi Rajat_16,

Please check the User manual (that can be found on UiPath Go, under Resources tab) for more info regarding the Issue object.
You can use the resulted array of objects with a Foreach and access all properties, please make sure to change the type of the foreach item from Object to Issue)

Regards,
Daniela

Hey Thanks. I figured out the similar solution. However I am stuck in get attachment activity. If you could help me in this?

Hi Rajat,

In order to obtain the attachments, use Get Issue Attachments activity.

Loop through the resulted array of attachment objects using Foreach activity with item of type Attachment. The “Content” property of attachment object contains the Url from where the attachment can be downloaded (if you open this URL in browser, it will automatically downlod the file).

In the workflow you can either use some VB code to download the file from URL Download File From URL Code VB.NET - Stack Overflow or just use Open Browser Activity with your Jira Url, login, and then navigate to that attachment URL, and use UI automation to click download.

I hope this is helpful.

Regards,
Daniela

1 Like

can you please share the solution

Hi @DanielaD ,

I am using the same activities but i am stuck in get the value of custom fields.

i tried :

  • issue.customfieldname KO
  • issue.customfields(“customfieldname”) KO
  • issue.customfields(customfieldID) KO

i do not find the solution in the documentation either on the community forum.
Would you help me please?

Hi @benjamin.denoual ,

If you use UiPath. Jirasoftware package, there is a user manual on UiPath marketplace.

In order to obtain the custom fields name using Get Issue activity, please try this:

  • Create a variable for the output “All Issue Fields Dictionary” - allFields ( var type is Dictionary (of String, Object) )
  • Use a For each on allFields.Keys ( foreach TypeArgument is String)

I hope it helps.

Regards,
Daniela

Hi @DanielaD
Thanks for your reply. It seems i had the wrong activities package.

However, I do not want to obtain the custom fields name. i want to obtain the value of the custom fields for a given issue.

Regards,
Benjamin

Hi @benjamin.denoual ,

The second Log message in the sequence that I shared does display the values for the given issue fields.

Regards,
Daniela

Hy @DanielaD
I read too quickly sorry.
It works perfectly (just need to deserialize the output to get the value for drop down list field in Jira)
Many thanks for your help :slight_smile:

Regards,
Benjamin

1 Like