Here an example code to set DueDate = Today + 1 using a PostFunction of Scriptrunner for Jira Cloud Here more examples to work with Dates in Jira Server, Datacenter & Cloud: Some JIRA Groovy Date & Calendar script tricks By MrAddon
Read More
www.MrAddon.com ®: Jira & Confluence Administration Support Blog
jira confluence admin administration support script scriptrunner groovy mraddon barcelona plugin custom development it technology barcelonatech development
Here an example code to set DueDate = Today + 1 using a PostFunction of Scriptrunner for Jira Cloud Here more examples to work with Dates in Jira Server, Datacenter & Cloud: Some JIRA Groovy Date & Calendar script tricks By MrAddon
Read More
A simple example code: function CaptchaReset(username) Example query: /rest/scriptrunner/latest/custom/CaptchaReset?username=mraddon Example result: {“result”:”OK”} By MrAddon
Read More
This is an example os Script Listener using the plugin Adaptavist Scriptrunner. In this example we will try to sync components between Jira projects. This example of sync is only one direction, in other words, there is a “master” Project where we add new Components, and those Components are added at same time to the…
Read More
Sometimes we need to transition issues (or “review” issues) from our usual Dashboard Jira gadget “filter results” with only one click. For this “trick” we need the plugin Scriptrunner for Jira. First create a custom REST Endpoint with Scriptrunner to Transition the issues (and do more actions if they needed). Example code: Note: the name…
Read More
A simple example code: function getCurrentUser(issueId) Example query: /rest/scriptrunner/latest/custom/getCurrentUser?issueId=KEY-111 Example result: {“currentUser”:”rpelaez”,”issueId”:”KEY-111″} By MrAddon .
Read More
In this example we will create a new Dialog inside Jira using Scriptrunner, a little bit of HTML, Groovy and Javascript. First we will create 2 REST Endpoints (one to show the Dialog and another one to show a HTML page with the results of the action). Custom REST EndPoint: showDialogExample (example code extracted from…
Read More
In this exercise, we will use a sample code of Adaptavist library in order to create a new “Escalation Service” in Jira (using the plugin Scriptrunner for Jira) to create scheduled alerts from a Jira JQL query to a Slack channel (using a Webhook). (click here to see the sample code) As first step, go…
Read More
In this post we will create in an easy way a new Slack Bot to obtain results of the rankings from Crypto-coin markets. In this case from https://coinmarketrank.io/ Just go to https://api.slack.com/apps?new_app=1 Set an App name and a Workplace to add the robot development like in the picture Click on “Slack Commands” (we will create…
Read More
We can use Behaviours in order to hide options of a customfield/dropdown in Jira depending of the value of the IssueType. If you are new I recommend first to do this example: Show/Hide Mandatory fields in Jira dynamically with Behaviours Behaviours is part of the Scriptrunner plugin of Adaptavist. In this example we will observe two…
Read More
First of all, please remember How to create and invoke a new REST Endpoint in Jira: JIRA Scriptrunner REST Endpoint & Web Fragment example In this exercise we will create a REST Endpoint in our Jira using Scriptrunner plugin to clone an existing project. The REST endpoint in this case accept two params: project_key and…
Read More
Below the documentation to do developments with Forge UI for Atlassian Cloud Jira or Confluence: https://developer.atlassian.com/platform/forge/ Here some screenshots of the Atlassian Summit 2020 presentation of Forge UI, in the presentation the Atlassian Engineers create a “New Macro” for Confluence in Forge UI. Seems easy because is Javascript and HTML/XML! With few lines of code we…
Read More
This exercise is the continuation of: How to create a Jira custom field with options from an external REST API In this case, instead of use an external REST API to obtain the values of the dropdown, we want to use a static list of values. We will use the same approach than the other…
Read More