Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Plugin "Jira_REST" Defect - Field Due Date


#1

Hi Guys,
i have 2 problems regardign Jira Rest, in short:
First problem: - When Push Defect from TestRail, appear the follow message:
Plugin “Jira_REST” returned an error: duedate: Due Date is required.
In the Integration, i have added duedate=on but is not shown in the push defect

The Second Problem:
Only for Bug Issue in Jira, there is correctly reported TestRail results but TestRails Case are is empty (see picture)

In the other issuetype in jira, TestRail Results and TestRail Case are correctly populated.
Could you help me?


#2

Hello Paolo,

Thank you for the post. In regards to the custom field, it appears that you have not included the second piece of information for adding a custom field from JIRA. You should have two sections. The first of which you have included with duedate=on. You should have a second separate section that looks like this:

[push.field.customfield_11002]
label=Customer
size=compact
type=dropdown
required=true

This of course is just an example. You would need to change this to the appropriate information. More information on this can be found here:

http://docs.gurock.com/testrail-integration/tools-jira-fields#custom_fields

In regards to your second question, can you take a screenshot of the case in TestRail showing that it is linked to your JIRA defect?

Thank you


#3

Thank You for respose asap.
For first point, I’m trying to manage field custom, there is not present type date (Jira needed it when open the bug, called duedate).
Second point, as you can see, the references are correct:
[cid:image001.jpg@01D29766.A4890FF0]
Type Epic, TestRail filed are correctly populated:

[cid:image002.jpg@01D29766.A4890FF0]

For Bug, TestRails Results it’s ok, is missing TestRail Cases.

Thanks in advance

Saluti,
P.Palermo


#4

Hi Paolo,

Thanks for your reply! JIRA’s due date field would use a date picker, however in TestRail you can configure this as a string field. You would then just specify the date in whatever format your JIRA instance expects (e.g. 2017-03-08). This would be configured as follows under Administration > Integration:

duedate=on

[push.field.duedate]
label=Due Date
size=compact
type=string
required=false

In regards to the TestRail: Cases section of your JIRA issue: This section is meant to only display test cases that have been linked via TestRail’s References field. Test results that have included defects would always be visible in the TestRail: Results section of the add-on (as the Defects field is specific to results and not on the test case level like the References field), and you can expand the results to see extra details or click on them to quickly jump over to TestRail. Hope this helps!

Regards,
Marco


#5

Hi Garcia, thanks for your solution but not correctly work.
I followed your configuration (it’s the same that i had), and Test Rail return follow Error:

Could you help me?


#6

Hi Paolo,

Thanks for your reply! This error just means that the date format you’ve used isn’t the format that JIRA expects. Usually the default for this would be yyyy-MM-dd (e.g. 2017-03-09). You can also check with your JIRA administrator to see what time format is configured (this can be different than what is displayed under JIRA’s look and feel administration page). Hope this helps!

Regards,
Marco


#7

Ciao Garcia,
i’m sorry, but the problem persist.
I checked Jira Advanced Settings, the format is d/MMM/yy as you can check in print.
Jira rest response always with error (print 2)
Could you help me?
Jira Configuration:


BUG Test Rail
<img

Thanks in adavantage.


#8

Hi Paolo,

Thanks for your reply! I was able to configure this in a test instance using yyyy-MM-dd format and everything worked properly. I would suggest reaching out to Atlassian support to see if they could assist in providing the correct format you should use for your instance.

Regards,
Marco