-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use scriptrunner issueFunction to speed up things #198
Conversation
Also of note might be that - JIRA 8.x will support this query out of the box it seems: |
ec3f98f
to
3308ccc
Compare
Thanks for the patch. It would be nice to be able to easily search across all projects. |
3308ccc
to
55b45b7
Compare
Now the plugin should work with or without scriptrunner though we try to use it by default since it's a fairly common plugin (and speeds up execution) |
55b45b7
to
6241b04
Compare
/packit build |
I tried to run a Jira report against our internal instance with my current config but it did not work. Disabling the script runner using |
Yeah, I left out a call to Issue.search during some rebase/merge. Hopefully that should be enough to fix it. If not I can change the defaults but fingers crossed... |
We're almost there ;-)
|
Original code needed per-project JIRA definition because JiraUpdated was querying all JIRA issues in a project that changed over defined period of time. This was wasteful and for JIRA instances with scriptrunner installed we can do things faster and with a single configuration With this change: * added new "use_scriptrunner" config item that is enabled by default. With this enabled it's no longer necessary to specify "project" config * added new "login" config item needed because when lastUpdated('by <login>') is triggered with non-existing login name it causes failure of the JIRA plugin. This can be used with or without scriptrunner * JiraUpdated really only reports comments and does not report other changes such as state change (this removes duplicate when closing issues as a side-effect)
/packit build |
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Thanks, seems to be working fine now. Merged into master. |
Original code needed per-project JIRA definition because JiraUpdated was
querying all JIRA issues in a project that changed over defined period
of time. This was wasteful and for JIRA instances with scriptrunner
installed we can do things faster and with a single configuration
With this change:
reported
') is triggered with non-existing login name it causes failure
of the JIRA plugin.
This will need further rework so that use of scriptrunner is
optional/configured properly (since it's not part of JIRA itself). Obviously docs need updates too. I'll try to clean this up later