Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create labels from Issue Description fields

Krupal Desai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 12, 2023

I have issue description fields in json format with labels regarding the issues. Example:

- alertname: <name of the alert>

- job: <cluster name>

- release: <release version>

....more

I want to create labels from the above json fields. Is there anyway I can do that ?

1 answer

0 votes
Ajay _view26_
Community Champion
January 13, 2023

Hi @Krupal Desai ,

There are several ways to achieve this, depending on your use-case.

Some options include:

Jira Webhooks: You can set up webhooks in Jira to trigger a script or program when certain events occur, such as an issue being created or updated. The script or program can then perform any necessary actions, such as running a custom script.

Jira REST API: You can use Jira's REST API to automate actions such as creating, updating, or deleting issues, and you can also use it to run custom scripts by making API calls from a script.

Integrate with other tools: Some other tools such as Zapier, IFTTT, etc allows you to integrate with Jira and run custom scripts.

Jira Apps: There are several Apps available for Jira that allow you to create custom automation rules and trigger them with custom scripts. For example, the ScriptRunner for Jira App allows you to write scripts in Groovy, Python, or JavaScript and run them as part of an automation rule.

Krupal Desai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2023

@Ajay _view26_  For the JIRA Webhooks, do you have any sample examples where I can create labels from alert description ? I have tried using webhooks already but have been unsuccessful so far. 

Ajay _view26_
Community Champion
January 13, 2023

@Krupal Desai  The easy way would be to explore the use-case using Atlassian Forge platform - use the product triggers https://developer.atlassian.com/platform/forge/manifest-reference/modules/trigger/. , whenever an issue is created/modified and parse the description to add labels 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events