Comments
-
You;ll want:issue.assigneeId = 'someuser'I notice you have tagged "ondemand", presumably that's a mistake?
-
Lots of plugins, eg create subtask script from script runner plugin.
-
You can use the Participants custom field and add them to the notification scheme, which isn't really watchers. Or use the Add Watcher listener for proper watches.
-
You can't use the javascript technique in ondemand... in fact there is no solution for this at all as far as I know.
-
for the code above you need "Simple Script Condition", not custom.
-
That's interesting.. If you get a sec can you try: assert currentUser.getClass().name == issue.getProjectObject().getLeadUser().getClass().name
-
I have no idea why that works. Is it an old version of jira?
-
Looks ok to me... try it in the condition tester, and prefix with assert, ie: assert currentUser == issue.getProjectObject().getLeadUser() Paste back here what it says... maybe they are different types of User.
-
it's helpful to use that tag, otherwise you will get answers for groovy... JMWU tacks on some extra methods that aren't in the API.
-
this is using jira misc workflow utils?
-
Yes... just add the licensing support, work out your pricing, then sit back and watch the money pour in as you sleep. And then deal with the angry users of your plugin who are now being asked to pay for something that was free.
-
There are multiple problems here, principally the URL is wrong, and the parameters are wrong in name and type. How can you know what they are? By using the network tools to examine the request in your browser when you do it via the UI, or using something like Fiddler. Below is a working script that calls copy tree…
-
Please could you use the \{code\} macro, which I have done for you now - code is unreadable without the formatting. Additionally including the imports makes it much easier for the person trying to help reproduce the issue.
-
No problem. Thanks for fessing up!
-
Yeah, me too. I suspect the OP has an old version of something.
-
Is this 6.2(.0), and which version of script runner?
-
You can add .rdp files as attachments on the page and link to those, eg [Connect to Server|^server.rdp]. Confluence can run anything but it would run on the server, which is not what you want. You could use activeX but that's all a bit passé, and has security implications. Don't know about buttons, but you can add your own…
-
in Cloud? Using the rest APIs.
-
not possible in cloud afaik
-
I don't think there's anything available for that in ondemand. If you are allowed to inject some javascript you could (insecurely) do it that way, but I thought you weren't allowed to do that. If you had a hosted instance it's pretty straightforward to write a condition that checks the changelog for an issue in such a way.
-
Seems like Solution Provider (SBM) is a user custom field, whereas you are treating it like a select list. Maybe someone changed the type? To check it's not null you should just do: cfValues['Solution Provider(SBM)']
-
Me too. It's not in version 1. Hopefully it's on the roadmap.
-
You also created https://jamieechlin.atlassian.net/browse/GRV-641 so let's keep the discussion there.
-
Point 4 is covered by {code} macro.
-
It's just the way html is rendered. Use the preformatted/code macro if this is important.
-
You should make the field required on the Resolve transition, then use javascript to empty any values, thus forcing the developer to fill them in again. Seems like this could be a bit annoying though.
-
Yeah, it is a separate question ;-) So again, I'll say it's possible with one of my plugins. It may be possible with others too but I'm most familiar with my own stuff of course. So basically you'd create two new events, and remove the "fire issue created" event from the create step of the workflow. Then you'd have two…
-
A little post-function script to set the fix version if the user is not in one of the groups, using script runner or other plugins. NB Behaviour plugin won't work if the field is not on the screen. Sorry Jo-Anne, I seem to keep doing this ;-) Personally though, backlog to me is anything not assigned to a version. If you…
-
I completely understand the sentiment of someone not feeling they have the technical skills to go this route, and your current issue is probably not reason enough to go down that avenue. However most of the scripting plugins (groovy, python) are free and OSS.
-
In some scripting plugins the logic can be in a file outside the workflow, so you don't even need to create a draft and all that. Plus you could apply the same logic to multiple workflows, and only change the parameters in one place. It's not so much that it's tedious and manual, but also error prone. Given that in the…