Comments
-
Sorry, should be! cfValues["SOW type"].value in ["New Solution", "POC/ Prototype development", "SDN/NFV POC", "Upgrade"] || cfValues["TOMS Modules"]
-
If SOW type is a single select use:cfValues["SOW type"].value(ie remove the asterisk).Also pay attention to case of the field names.
-
SOW Type is a multiselect right?It's the second one you should be using. What versions of jira and the plugin are you using?
-
That code above is for behaviours. If you are using simple scripted validator, the code might be (! cfValues["Name of first select"]*.value.intersect(["val1", "val2", "valn"]) || cfValues["Second select"] So to translate that, if the selected value in the first field is not one of the ones you care about, then fine, if it…
-
Can you break that into the two component parts, and try them individually to see which is the issue.What type of field is BG Impact...?Please use scriptrunner label too in future.
-
If you're not sure about operator precedence use parens:status = "In Progress" AND ( (Approved = Yes AND "Data Complete" = No) OR (Approved = No AND "Data Complete" = Yes) OR (Approved = No AND "Data Complete" = No))
-
In cloud think you will have to do it like: (A = Yes and B = No) or (A = No and B = Yes)
-
You're welcome, and thank you for that.
-
Steven - yes, you can find the javadoc at https://developer.atlassian.com/static/javadoc/jira/latest/reference/com/atlassian/jira/issue/issuetype/IssueType.html. It's helpful to execute the conditions and "log.warn()" the return values, so you can see this. For your first one you could have written : !…
-
For the ondemand version try the JCLI: https://studio.plugins.atlassian.com/browse/JCLI-153
-
Yeah sorry, that wasn't in the tags.
-
As Renjith said, you can use the script runner to copy a project. Some groups in my org have a template project, then when they need a new project it is cloned from that. It's not a complete solution, because when you want to make a change to the template, eg associate a new field, you need to make sure you also do it for…
-
You could also try Script Runner, there is an example of the principal of what you are trying to do here: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted%20Fields#ScriptedFields-Calculateanumberbasedonotherfields
-
Ashton, the red asterisks should disappear only when the field has a value. If the value is removed they should come back. Does that not happen? This is not exactly the same behaviour as when using jira field configurations... I'll probably change it so that the asterisk stays even when the value is filled, to avoid…
-
The plugin does have support. It's marked as unsupported because "supported" denotes some sort of SLA, which you're only going to get if you pay for it.
-
I think the way they would like you to go is using the remote API. If not now, I'm sure at some point they will add the ability to post a JSON packet on a transition (like github webhooks). Then you write your own app that can receive that, then create the subtasks using the REST API. Massive overkill? Yes probably, but…
-
Daniel, thanks for trying to reproduce. Carlo, F12 tools should be able to show you a javascript stacktrace, can you post that? Might be best to create an issue at http://jamieechlin.atlassian.net/browse/GRV.
-
I blame the rich text editor ;-)
-
For non-empty, you just need: cfValues[‘Customer Request Type'
-
Should be transientVars["issue"].summary
-
issue.summary = transientVars["originalissueobject"].summary is that a typo? The capitalisation is wrong. IIRC the answer is transientVars... if you "log.warn(transientVars)" and check your log file, one of the things in that map gives you the parent ID or similar. Better still debug in an IDE.
-
Your question only makes sense if you're using a custom field to record work logs on linked issues. If it's the current issue, it will get reindexed when a work log is added. There is an example of reindexing linked issues using an event handler…
-
You can try the jql functions in script runner plugin. You can use the expression function to do something like: issueFunction in expression("", "created > resolutiondate - (5 * 60 * 1000)") If by 5m you mean 5 minutes, then you have to expand to milliseconds as in my example, which makes it a bit ugly. You can use d or w…
-
That's not really a question but I'm guess you're looking for something like https://scriptrunner.adaptavist.com/latest/jira/recipes/scriptfields/workRemainingInLinkedIssues.html
-
Do you need to do it via ajp13? I just have: ProxyPass /fisheye http://f.q.d.n:8060/fisheye<br< a=""> /> ProxyPassReverse /fisheye http://f.q.d.n:8060/fisheye Also you need to make sure you have changed the context root in fisheye and then restarted Fisheye for it to take effect. Maybe worth trying to get it working with…
-
It would be better to try to work through the issue. Are all jql functions broken or just yours? Eg does "issueFunction in hasSubtasks()" work?Go to admin -> script jql functions. Do you see yours there? You need to make sure your class that implements onlyCoreComponents is under a script root - see the parent page of the…
-
Try disabling then re-enabling the plugin.. If you have your own JQL functions - looks like you do - you may need to read: https://jamieechlin.atlassian.net/wiki/display/GRV/Breaking+Changes+for+Custom+JQL+Functions+in+3.0 But I would have expected more error messages.
-
Oh ok, sorry, misunderstood. Not sure if that's possible without specifying a date range.
-
created > -7d ?
-
that's a velocity template, not related to my plugin