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 ?
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.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.