atlascommunity / jira-plugins-groovy Goto Github PK
View Code? Open in Web Editor NEWJira Groovy plugin
Home Page: https://atlasteam.ru
License: BSD 2-Clause "Simplified" License
Jira Groovy plugin
Home Page: https://atlasteam.ru
License: BSD 2-Clause "Simplified" License
It will be nice if we have this capatibility in my groovy.
Similiar to Remote Issue Links
in scriptrunner. Like already implemented linkedIssuesOf.
For minimal if we can search Against Title and URL it will be great!
Good morning,
I'm trying to create a script to be able to perform updates on the Oracle DB, but currently it doesn't work.
At the moment it works perfectly in reading.
The script for reading is as follows:
import groovy.sql.Sql
import java.sql.Driver
def driver = Class.forName('oracle.jdbc.OracleDriver').newInstance() as Driver
def props = new Properties()
props.setProperty("user", "USER")
props.setProperty("password", "PWD")
def conn = driver.connect("jdbc:oracle:thin:@SERVER:PORT:ISTANCE", props)
def sql = new Sql(conn)
def results = sql.rows("MY QUERY")
return results
In update I replaced sql.rows with sql.execute, but to no avail:
sql.execute "MY UPDATE QUERY"
can you help me?
Global Object can not find other Global Object when start
I must edit my Global Objects after jira restart every time.
CME might occur if script is executed right after other plugin is disabled.
I have seen the following code:
@Nonnull
@Override
public List<QueryLiteral> getValues(@Nonnull QueryCreationContext queryCreationContext, @Nonnull FunctionOperand functionOperand, @Nonnull TerminalClause terminalClause) {
return ImmutableList.of();
}
so it does not work, am i right?
Currently in my work have the data center versión and we need this plugin. We would like verify if we can install en the data center version.
Best regard.
Just upgraded my JIRA instance to 8.5.1 along with updating plugin from 1.19 to 1.20. Started seeing a NPE on every issue access in projects/workflows that were using the plugin. Also saw various 'can't display the issue at this time' when processing transitions.
Start of the NPE:
2019-12-07 16:11:23,203 http-nio-8080-exec-4 ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=5b29c3ba-6313-42c1-b97a-77c1fd4541ab, interpretedMsg=, cause=java.lang.NullPointerException, stacktrace=java.lang.NullPointerException at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.doExtractValue(FieldValueExtractor.java:205) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.lambda$getCachedValue$1(FieldValueExtractor.java:140) [?:?] at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2379) [?:?] at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853) [?:1.8.0_222] at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2377) [?:?] at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2360) [?:?] at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108) [?:?] at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:62) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.getCachedValue(FieldValueExtractor.java:134) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.extractValueHolder(FieldValueExtractor.java:93) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.extractValueHolder(FieldValueExtractor.java:81) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.FieldValueExtractor.extractValue(FieldValueExtractor.java:65) [?:?] at ru.mail.jira.plugins.groovy.impl.cf.ScriptedCFType.getValueFromIssue(ScriptedCFType.java:50) [?:?] at com.atlassian.jira.issue.fields.ImmutableCustomField.getCustomFieldParamsFromIssue(ImmutableCustomField.java:1238) [classes/:?] at com.atlassian.jira.issue.fields.ImmutableCustomField.populateFromIssue(ImmutableCustomField.java:595) [classes/:?] at com.atlassian.jira.issue.fields.rest.FieldHtmlFactoryImpl$FieldRenderItemWithTab.populateFromIssue(FieldHtmlFactoryImpl.java:403) [classes/:?] at com.atlassian.jira.issue.fields.rest.FieldHtmlFactoryImpl.getPopulatedRenderableItems(FieldHtmlFactoryImpl.java:234) [classes/:?] at com.atlassian.jira.issue.fields.rest.FieldHtmlFactoryImpl.getEditFields(FieldHtmlFactoryImpl.java:160) [classes/:?] at sun.reflect.GeneratedMethodAccessor1190.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_222] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_222]
Hi Team,
We are using MyGroovy v1.18.1 in our Jira v7.1.3 Data Center instance and now planning to upgrade it to the latest version Jira v8.5.0 but there it is showing MyGroovy v1.19.2 is available only for Jira Server 8.0.0 - 8.5.1(not for Data Center).
So, we want to know when you are planning to release the MyGroovy version compatible with Jira v8.5.0 Data Center.
Thanks
Prince
Might need to repalce dashes with underscore.
Format might be script_id
Your official site throws error:
Error establishing a database connection
Just to get something filed here - any idea when you might have the updates made to deal with all the changes atlassian made in 8.0? In particular, for MyGroovy looks like the primary impact is due to the Lucene change and corresponding change in object names/classes related to searches/results.
If input is changed before validation is completed, old validation result might override new one.
Hi there is it possible to validate a scripted field and add a custom description. If so, can you provide an example. thx great plugin you have here.
I'm curious as to how much effort it would be to have an equivalent plugin for Confluence? Obviously scripts/etc. would all be different, but thinking it could be useful just to have the 'be able to run groovy scripts on demand' functionality.
Greetings. First I want to see how much I really love this project. It's great! I have Jira Server 8.5.4 and when I click the little purple "i" info button on the bottom right side of the workflow script editor window, the links to MutableIssue and ApplicationUser resolve to a 7.6.1 document that no longer exists. Cheers.
If script is empty or returns not boolean result log error and throw WorkflowException.
Now it's ignored and return false. And admins also ignore this problem for script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.