Forums

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

Is it possible to modify a custom field based on the title of an issue?

Daniel K August 4, 2020

Hi everyone.

I'd like to know if it is possible to modify the value of a custom field text box based on the title of an issue.

For example, we have an issue that is generated on Jira from QRadar. What I'm asking is this: Can the issue that was generated on Jira have a custom field text box with instructions that are valid only for that specific offense? and for every other offense have different instructions based on the offense itself.

I know you can create static custom fields that will be affected by things such as Project type and other parameters, but I guess this is more of a dynamic nature.

Thank you in advance, I hope the question is clear enough.

1 answer

1 accepted

0 votes
Answer accepted
Fazila Ashraf
Community Champion
August 6, 2020

Hi @Daniel K 

If you are scripting the automated population of the custom field value, then you can control the value based on the summary text also. So you will have to get the summary value from the ticket and then do alot of 'if else' to set the custom field value appropriately. 

Did you already try? Are you stuck at any specific action?

Daniel K August 7, 2020

Hey @Fazila Ashraf Thank you kindly for the reply.

That does sound like a great solution, but I have no idea how to script the value of the custom field, I'm still learning this system from 0. If you could point me in the right direction, I would be grateful.

Thank you!

Fazila Ashraf
Community Champion
August 9, 2020

@Daniel K  , Do you have scriptrunner or any other plugin that helps with automation and scripting, installed in your setup?

Plugins like : Automation for JIRA, JMWE , scriptrunner helps with such use cases.

I generally use scriptrunner and I have have to script the actions using groovy scripting.

Scriptrunner has this behaviour functionality that helps in prefilling the custom field values in the form -> https://scriptrunner.adaptavist.com/5.5.2/jira/behaviours-overview.html

Or use the post functions (write and execute the automation script during a status change) -> https://scriptrunner.adaptavist.com/5.5.2/jira/custom-workflow-functions.html

Hope this link helps you in getting started -> https://scriptrunner.adaptavist.com/latest/jira/tutorials.html

Suggest an answer

Log in or Sign up to answer