Hi,
I'm trying to use a built in script as a post function.
The Script i'm using: Clones an issue and links.
There is an option of additional issue actions. i'm would like to choose: Set issue summary.
and i would like to add a constant to an exiting summary. meaning not to overide the exisiting summary, just to add on top of that.
it look like this:
issueInputParameters.setSummary('new summary')
issueInputParameters.setSkipScreenCheck(true)
can you please let me know what should i put under the 'new summary'?
Thanks in advance,
Eyal.
I think you want:
issue.summary = sourceIssue.summary + "Some constant"
One of the examples, if you click Expand Examples, is for exactly this IIRC.
Hi Jamie,
I tired several options:
image2016-3-14 16:34:31.png
Both options didn't work. Please note that when i'm not adding this additional section, the script of cloning the ticket - works
Thanks in advance,
Eyal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're using a very old version... which one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That version is over two years old, I can't remember how you would do it in that. Any chance you can upgrade?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
Looking on the add-on in the manage add-ons section in Jira, i don't see any 'Update' button to upgrade it. can you please:
Please see attached screen shot frommanage add-on section
image2016-3-17 8:26:10.png
Thanks,
Eyal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you upgrade to 6.4 then you should upgrade to the latest version of the plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it will take us time to upgrade JIRA to 6.4.
6.1.1 is not possible to upgrade the add-on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can pick the latest version with your JIRA version from https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/versions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
I tried testing the new version of this add-on and i think it's asking me to pay for the new version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eyal,
Yes, you will find version 4.x has become a paid version. You can use an evaluation licence for 30 days though whilst you decide if you want to switch to the paid version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
We already implemented our work flow using this add-on when it was free of charge. not sure why we need to pay now.
anyway can you grantee if we will pay and upgrade that the issue i'm complaining above will be solve? in general every time i'm using the additional steps in the built in scripts it fails.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eyal,
It should work but I cannot guarantee it which is why I suggested you try a staging instance of JIRA 6.4 an an evaluation licence for ScriptRunner for JIRA and check it yourself.
I think you need a transition screen for your "additional actions" to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
We would like to process with the perchuse of this add-on.
we would like to test it first in our test servers. will it possible to use the same keys on different servers (2 tests server and 1 production).
after we will finish all test we will need it on the production only.
please confirm.
thanks,
Eyal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eyal,
When you have a paid license, you can make use of a "developer" licence on all non-production servers (like staging, development or test). This "developer" license is available to the billing or technical contact for the licence under my.atlassian.com.
regards,
Mark.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eyal,
issueInputParameters.setSummary(issue.summary + 'new summary')
will do the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanos,
Thanks you for your swift reply.
I have tried adding this, but unfortantly it's failed the new clone tickets to be created.
To provide more details, in the sections of the 'Additional issue actions', when i choose Set issue summary
then i get 2 lines:
issueInputParameters.setSummary('new summary')
issueInputParameters.setSkipScreenCheck(true)
i tested all possible combination that i can think of:
issueInputParameters.setSummary(issue.summary +
'new summary'
)'
Use the original line only issueInputParameters.setSummary('new summary')
use with and without ''
deleting the second line
all the combination has failed to work. when i try to run the script without this additional issue summary, the script is working and creating the new clone ticket.
Do you have any idea, what shall i do instead?
Thanks in advance,
Eyal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.