jira1 Min Read

Jira Rest APIs common usages

Gorav Singal

November 10, 2017

TL;DR

Use JIRA REST APIs like createmeta to fetch custom field values, create issues programmatically, and automate JIRA workflows with basic authentication.

Jira Rest APIs common usages

This article shows some of common usages of JIRA rest apis.

Note: This article assumes you have a username and password for calling rest api of JIRA.

Get values of a custom field for a project

You know about a custom field, and want to get its possible values like a drop down having alot of options.

There is an API: createmeta, which gives you every possible field require to create JIRA issues.

Note: This API is pretty expensive in terms of data. It can give you complete data for all the projects. But, you might be interested in one or two projects.

curl -u "username:password" "https://jira_url/rest/api/2/issue/createmeta?projectKeys=XYZ"

Above api call will give you very limited result, which has only the issue types, and no expanded fields. But, we are interested in getting data of a custom field.

curl -u "username:password" "https://jira_url/rest/api/2/issue/createmeta?projectKeys=XYZ&expand=projects.issuetypes.fields"

Now, you are telling JIRA to return expanded fields, and now you will get values of all custom fields that appear while creating a JIRA issue in your project XYZ, and for each issuetype.

Share

Related Posts

Drupal Helpful codes for database queries

Drupal Helpful codes for database queries

Being a drupal user from last around 5 years, I used to know small codes for…

Curl - Your friend for Rest APIs/Calls - Basic Commands

Curl - Your friend for Rest APIs/Calls - Basic Commands

Curl is a wonderful tool for initiate REST APIs or calls. Or, you can literally…

Docker image for Drupal 7, and Php extension MongoDB installed.

Docker image for Drupal 7, and Php extension MongoDB installed.

You have drupal 7 image from docker hub, and want to connect tomongo db via php…

Docker Push: How to push your docker image to your organization in hub.docker.com

Docker Push: How to push your docker image to your organization in hub.docker.com

Tag the image, by seeing its image id, from docker images command docker tag 04d…

How to get Youtube Video Thumbnail Images

How to get Youtube Video Thumbnail Images

If your youtube video looks like:https://www.youtube.com/watch?v=g0kFl7sBdDQ…

Claude Code Skills — Build a Better Engineering Workflow with AI-Powered Code Reviews, Security Scans, and More

Claude Code Skills — Build a Better Engineering Workflow with AI-Powered Code Reviews, Security Scans, and More

Most developers use Claude Code like a search engine — ask a question, get an…

Latest Posts

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI video generation went from “cool demo” to “usable in production” in 2024-202…

AI Models in 2025 — Cost, Capabilities, and Which One to Use

AI Models in 2025 — Cost, Capabilities, and Which One to Use

Choosing the right AI model is one of the most impactful decisions you’ll make…

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

Generating one image with AI costs between $0.002 and $0.12. That might sound…

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

Two years ago, AI coding meant one thing: GitHub Copilot autocompleting your…

AI Agents Demystified — It's Just Automation With a Better Brain

AI Agents Demystified — It's Just Automation With a Better Brain

Let’s cut through the noise. If you read Twitter or LinkedIn, you’d think “AI…

Supply Chain Security — Protecting Your Software Pipeline

Supply Chain Security — Protecting Your Software Pipeline

In 2024, a single malicious contributor nearly compromised every Linux system on…