Hi Community,
I have below use case, could anyone advise how can I do?
I wanted to retrieve information (System Field) in the Jira Description field.
In jira ticket Description, it store information, System Field is part of the ticket Description. I would like to pass this System Field information to the Label field in the ticket.
I know script runner - groovy can do it. But I m not too sure, Can anyone advise? Thanks!
Not sure why, I already posted two time (answer your question), but it didn't appear. Not sure if you can see my comment to your question?
No, there's no comment I can see.
Hi @HP
You can look for a specific keywords in your description and if found set the labels.
Groovy has very good methods like contains() to work with strings.
issue.getDescription.contains("keyword")
This will return true if the keyword is found, based on that you can do further things like update fields. You can find the script to update labels here. Code can further be modified to check for multiple occurrences of the keywords or variety of keywords.
I hope it helps.
Ravi