Comments
-
If you check your logs that will produce an error because it's not valid. Use this: issueInputParameters.setAssigneeId(currentUser).name But your code could be better because that doesn't check for current user being null.
-
Is "Problem Management Status" the name of the scripted field? I'm guessing that you have only set up this field for the purpose of searching, as this information is all available on the issue anyway? What is the error you get when using "INC-????: Closed" ? Anyway, I'd consider using a jql function, like: issueFunction in…
-
https://studio.plugins.atlassian.com/wiki/display/CONFSU/Confluence+SU - easy points!
-
https://scriptrunner.adaptavist.com/latest/jira/services.html
-
I would suggest you proceed by trying a listener on Issue Created, or a scheduled service that does this.
-
The problem is that the attachments are not available to the post-function at the time it runs, when creating an issue via email. This is a JIRA bug, imho. What is the position of the post-function, ie, can you try making it last?
-
Version of JIRA and the plugin?
-
Also see https://answers.atlassian.com/questions/6684695/what-did-you-think-of-the-summit-keynote
-
Oh ok, so you are not update to date. If you are on jira 6.2 or greater you can install Script Runner 3 which contains both. If you are not, then you can install the last but one version of behaviours, or if you install from UPM it should give you the compatible version.
-
Tip: If you use the plugin labels the right people will respond, if you don't it's total pot-luck. Yes, they are completely merged. It sounds like what you want is just the same behaviour applied to both custom fields, when they change the priority can be recalculated. For completely you would make the priority read-only…
-
Try using the "out << " syntax as shown in https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Sendacustomemail The workflow engine might be mangling it. Does the $issue bit show the key? If it does just use that in both places.
-
I'm not sure how you are testing with script runner, but the "send custom email" post-function uses GString templates, whereas jira uses velocity. You can't mix and match. In script runner you can use ${baseUrl}. Unfort the capitalisation differs from the velocity version.
-
It seems to be running on port 8081...?
-
It's also pretty straightforward to do it with curl, or script your browser using webdriver. Well, straightforward if you've done it before. Also see https://answers.atlassian.com/questions/92385/importing-project-from-another-jira-instance-how-do-we-mass-import-custom-field-multi-select-options?page=1#92622
-
You can, and that's nice and simple (I gave you a "like") - but I wouldn't recommend getting parameters like this. The reason is you will need to do type conversion yourself - eg if the assignee, then from a string to a User object, if "affects versions", from a String[] of version IDs to a Collection of Version objects. I…
-
It's really only links that you need to worry about. Other fields you get from the issue in the normal way. This is a jira bug/shortcoming imho, haven't got round to reporting it yet.
-
Thanks for letting me know how it worked out. Can you mark my answer as correct please... it may help others.
-
OK, here you go. Change TextFieldA to the name of your custom field, including any spaces or whatever. image2015-9-14 21:11:41.png
-
that should also be ok.
-
The due date is a actually a date and time, the time will be midnight on the due date. So if it's the same day, it will actually be after the due date. You can use clearTime() to set your "new Date()" to midnight, and your compareTo should then return equal if it's the same day.
-
can you post the entirety of your code? Or at least a complete example. If that was it, you need: if (issue.dueDate) { return issue.dueDate.after(new Date())} or ".before", not sure what you're trying to do.
-
It's certainly not advisable and maybe not possible to use the same database. Why would you even want to do that?
-
Isn't this a question about the create-on-transition function? If so I don't know much about it. ScriptRunner has a clone issue function which can accomplish the same thing, there you can provide a closure to control which attachments are copied to the new…
-
No problem. As it stands, the code will pick the *first active sprint*, so you should not need to make changes if you have multiple active sprints. They will come in order of creation IIRC.
-
There is now a built-in script to handle this: https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_add_remove_from_to_active_sprint But I'm not sure you will be able to use it if you need to dynamically set the board based on your rules. JA is not a public API, and it changes often, so if you can use the…
-
for a post-function that's first in the list, you just need: issue.setCustFieldValue... Don't redefine issue, or get it from the db, or call .store.
-
can you post the actual script you are using
-
I presume this is for access control? It makes me wonder if you are trying to restrict access by verb and if so why. AFAIK the web UI just uses get and post. The rest interface doesn't at the moment but probably will use delete and put as is standard. As far as webdav is concerned that's only on through a particular…
-
Yep, the parent post-functions will run.
-
Hi Nikhil, It's not available for jira studio, and very unlikely ever to be. jamie