Skip to main content

Posts

Showing posts with the label Jira Software

How to add different description templates for different issue types using scriptrunner behaviours (Jira Cloud)

Hello All ! Recently I have been getting several requests from Jira project owners to setup default description templates for different issue types. In this blog post I will go over how to set up different description templates for different issue types using scriptrunner behaviour scripts for Jira cloud. Writing a behaviour script in Jira cloud is very different compared to writing a behaviour script in Jira data center. Main difference is the language to use. With Jira data center you are limited to using Groovy and with Jira cloud you have the option of using Javascript or TypeScript. Also, below is another major difference with regards to the field that the script is attached to. A fundamental difference between the ScriptRunner for Jira Server/DC and ScriptRunner for Jira Cloud behaviours feature is that the field selected is the trigger that causes the behaviour to run in ScriptRunner for Jira Server/DC. However, with ScriptRunner for Cloud, you choose an affected field first and...

How to export a list of Jira custom fields to csv (Jira Data Center)

 Hello All ! As a Jira administrator it is very important to keep an eye on the number of custom fields you have in your instance because the number of custom fields directly impact your instance performance. Atlassian also has confirmed this in their documentation .  One of the important strategies to keep your custom field number low is to reuse them as much as possible across projects. When you get a request from a user to create a custom project, you can provide a list of custom fields upfront, and ask the user to choose existing fields instead of creating new ones. Out of the box, Jira doesn't provide an easy way to export the custom field list to a csv file to share with non Jira admin users. In this blog I will share how I exported all Jira custom fields into a csv file using Jira REST API and Python. This solution was tested on Jira Data Center version 8.x, Python3 and Windows 11. Let's see how we can get the custom field list in 3 easy steps. Note : I assume that you...

How to export Jira project lead email addresses to csv (Jira Data Center)

Hello All! Upgrading a large Jira Data Center instance is no easy task. One of the main steps of this process is communicating to project leads about this. When there are hundreds of Jira projects in your instance, it can be tedious to manually find the email address of each project lead. In this blog I will share how I exported all Jira project lead email addresses into a csv file using Jira REST API and Python. This solution was tested on Jira Data Center version 8.x ,  Python3 and  Windows 11 . Let's see how we can get this email list in 3 easy steps. Note: I assume that you have Python setup in your environment where you will run the script in Step 3 and you know how to run a python script. Also, that you have access to all Jira projects in the instance because REST API will only return data from projects where you have access.  Step 1: Login to your Jira instance. Go to the url https://your.instance.domain/rest/api/2/project?expand=lead. This url will return a...

Welcome to my blog

Hello All ! Welcome to my blog and thanks for taking your time to read what I have put together. I am a Jira administrator with about 7+ years of experience in the Atlassian world. At my day job I work with internal customers to convert their manual processes into Jira using Jira Service Management and Jira Software.  Throughout my career I have learned a lot about setting up Jira projects, automations, Jira REST API usage, scripting and Integrating Jira with many external systems. My goal for this blog is to share my knowledge with my fellow Jira admins or any one who is interested in consuming my knowledge to make their jobs/life easier. Most of the content from this blog will be based on real world use cases rather than imaginary ones. Hope to publish my first "How to Jira" content soon. Stay tuned ! Thanks !