Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xporter "Send Report" post function used to work perfectly, no longer sends email.

Montana Fox
February 24, 2021

We are using Xporter 5.4.4 with Jira Server 7.2.7.

Until a few weeks ago, we had success with a few workflows which used the Xporter "Send Report" post function. Suddenly NONE of them are working. I can manually create PDFs with Xporter from the issue screen, but not during a transition post function.

The only things we have done between the last time it worked and now are:

• Upgraded our app server SSL cert from http to https, which changed the Jira base URL.

• Implemented MiniOrange SSO so users could be logged in automatically, which changed their usernames from short (FLast) to full email (First.Last@company.email).

Neither of these things seem like they should be causing a problem, as the post functions do not appear to be relying on a specific base URL or a specific username.

This is the error I found in the log:

/secure/WorkflowUIDispatcher.jspa [c.x.jiraxporter.workflow.SendReportFunction$SendReportRunnable] Error performing send report post function
java.lang.NullPointerException
at com.xpandit.jiraxporter.workflow.SendReportFunction$SendReportRunnable.run(SendReportFunction.java:333)
at java.lang.Thread.run(Thread.java:745)

1 answer

1 accepted

0 votes
Answer accepted
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2013

You can create a filter with your search criteria and use it to retrieve the issue. If you use thismethod , if later you want to change the search criteria no need to change the code .

ex: final JqlQueryBuilder builder = JqlQueryBuilder.newBuilder();

builder.where().savedFilter().eq(new Long(activeEmployeeFilterId))

Hope this may help you

Prameesha Samarakoon
Contributor
September 2, 2013

Hi,

could you please explain a bit more, Im relatively new to JIRA development so its a little unclear. How do I define the activeEmployeeFilterId in the java class of my plugin and how can I access the values retrieved by the filter? What I need to do is to retrieve the issues and filter them based on the assignee and status and reassign the issue. In order to do this I need to filter issues based on two selection criteria.

Thank you for the prompt response

Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 3, 2013

You can create filters in Jira. For each filter it will assign id.

ex:- you have created a filter called all active employees and filter id is 10000

final JqlQueryBuilder builder = JqlQueryBuilder.newBuilder();

builder.where().savedFilter().eq(new Long("10000")) // this will give the same results as the filter you created.

If you want to add more condition to this you can add as follows.

builder.where().savedFilter().eq(new Long("10000"))

.and().customField(field1.getIdAsLong()).eq(field1value)

.and().customField(field2.getIdAsLong()).eq(field2value);

means you can add more conditions on the filter and the get result.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events