ScriptRunner for Jira

Add scripted custom fields

Add your own customised JIRA Custom Field containing a Groovy script

Concepts

Static type checking is a feature intended to provide information to you about whether your script is correctly written.

The first thing to understand about Groovy is that it’s a dynamic language. Amongst many other facets of dynamic
languages, this means that method and property names are looked up when your code is run, not when it’s compiled,
unlike java.

Take a very simple but complete script:

That is, call the method bar() on the object foo. Unlike Java, this script will compile without errors, but when
you run it you will get a MissingPropertyException, as foo hasn’t been defined. This behaviour is useful as there
are many circumstances that could make this code execute successfully, for instance an object called foo, or a closure
getFoo(), being passed to the script’s binding.

Although Groovy is a dynamic language, we can compile scripts in a manner that checks method and property references at
compile time. The static type checking (STC) feature does just that, so that you can see any problems in your scripts
when you are writing them, as opposed to when they execute.

It’s important to understand that when your scripts are executed, they are always compiled dynamically. When they are
compiled for STC, the resulting generated bytecode is thrown away.

There are limitations to the type checker – it’s quite possible to write code that is displayed as having errors, but
which is perfectly valid and will execute fine. Some examples of this are:

If we were writing a condition where we wanted to check the number of issues returned from a search is zero, we might
inadvertently write:

STC is telling us that we are trying to set the total, rather than retrieve it. We meant to use the equality
operator:

Code areas will show a green dot, which tells us that the code is syntactically correct, and the methods and properties
have been checked.

STC in the cloud will provide additional help for the script context, ensuring that properties access matches the JSON Schema
provided by Atlassian

Define how your jira custom fields behave

Use the Behaviour functionality to define how Custom Fields behave in a given project/issue context.

Make a field mandatory or read-only depending on other data in your JIRA issue form

Perform server-side validation of field data, before an issue is submitted to JIRA

Enhance your workflows

Enhance your JIRA workflows with built-in or customised scripts for Condtions, Validators or Post Functions.

Escalate jira events

Create an escalation service to automatically escalate the priority of issues

Jira script runner integration | polontech

Это мощный инструмент для администрирования Jira, который расширяет ее возможности, подстраиваясь под нужды и цели вашей команды.

Функционал Jira можно расширить с помощью дополнительных плагинов из Atlassian Marketplace, но на поиск нужного приложения может уйти время. А что если использовать одно приложение, с которым можно кастомизировать Jira так, как нужно вам?

Scriptrunner позволяет создавать собственные скрипты для Jira на базе хорошо документированного Jira Java Api и Groovy. Если нет возможности написать собственный скрипт, можно воспользоваться одним из уже встроенных. Scriptrunner предлагает широкий выбор готовых скриптов для оптимизации рутинных задач: оптимизация административных задач, кастомизация воркфлоу, дополнительные функции для электронной почты, возможность встроить Slack и многое другое.

:/>  Игра Diablo III имеет ограничения стартовой версии после покупки - Служба поддержки Blizzard

Это мощный инструмент для администрирования Jira, который расширяет ее возможности, подстраиваясь под нужды и цели вашей команды.

Функционал Jira можно расширить с помощью дополнительных плагинов из Atlassian Marketplace, но на поиск нужного приложения может уйти время. А что если использовать одно приложение, с которым можно кастомизировать Jira так, как нужно вам?

Scriptrunner позволяет создавать собственные скрипты для Jira на базе хорошо документированного Jira Java Api и Groovy. Если нет возможности написать собственный скрипт, можно воспользоваться одним из уже встроенных. Scriptrunner предлагает широкий выбор готовых скриптов для оптимизации рутинных задач: оптимизация административных задач, кастомизация воркфлоу, дополнительные функции для электронной почты, возможность встроить Slack и многое другое.

Scriptrunner for jira

RICHARD CROSSon 30/06/2022

Preserving my original review for posterity, but I retract most of what I said after raising a support ticket with Adaptavist and getting a very prompt solution and advice for my particular problem. It far exceeded my usual experience with 3rd party plugin support desks.

Additionally, I did manage to find the latest documentation, although the particular page I was trying to follow was exactly the same, and not abundantly clear. And there is quite a steep learning curve to getting the most our of this plugin.

However, having such excellent, friendly and responsive support from Adaptavist largely nullifies this particular (minor) complaint.

— Original Review —
It’s a powerful tool, for sure, but the documentation (although verbose) is sometimes extremely hard to follow, frequently lacking screenshots or clear instructions on how to do various things, such as creating an indexer for a scripted field.

I’m afraid it remains installed primarily for the very useful “Impersonate User” feature alone; we don’t use any of the other features.

:/>  Полное удаление Google Chrome в Windows. Как полностью удалить Гугл Хром с компьютера

Additionally, the online documentation only goes as far as version 6.20.0, whereas we’re on version 6.53.0!

Scriptrunner for jira server features

See Navigating to ScriptRunner for more information on how to access ScriptRunner features.

Extend your jira reporting capabilities

Improve your JIRA Querying with extended functions like hasAttachments, hasComments and much more.