Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Custom field to count number of Issues matching Status Category by Organization

Using JIRA Service Management and JIRA Cloud

We have a service where customers are limited to X number of In Progress requests at once - depending on their subscription level.

I need a custom field visible on each Request, that shows how many Issues that Organization has Open that match the category "In Progress".

How would I write a script to do this?

1 answer

Hi Leon,

Thank you for your question.

I can confirm that ScriptRunner for Jira Cloud can allow you to create a custom field using a Script Listener that calculates a value using either a Script Listener as shown here or that calculates a value using a Scripted Field as shown here.

Using this you would be able to write a script which called the Search for issues API in order to search for issues that match your request using a JQL search and then to count the number of issues returned and to store these in the field.

I can confirm that the example located here shows an example of how the Search for issues API works and can be used as a reference guide to help you to create the script that you require.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

75 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you