Forums

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

Fill custom field with text from comment

Lloyd Patawaran January 10, 2023

Hello,

I am looking for a way to fill a custom field with input/text from a specific comment. For example:

 

Jira service request is submitted via portal or e-mail. Comment includes the string "Service ID: T10000". I would like to parse "Service ID: T10000" into a custom field called "ServiceID"

2 answers

0 votes
Kristján Geir Mathiesen
Community Champion
January 10, 2023

Hi @Lloyd Patawaran  and...

giphy

You could probably use (Atlassian) Automation to do this:
Trigger is on "Issue created".
Condition is "Issue Fields Condition"
Update your custom field with that value.

automation2.png

HTH,
KGM

0 votes
Mark Segall
Community Champion
January 10, 2023

Hi @Lloyd Patawaran and welcome to the community!

...service request is submitted via portal or e-mail. Comment includes...

For the purposes of ensuring alignment on terminology, I'm assuming by "comment" you mean "Description"?  The user does not have the ability to add a comment until after the issue has been created.  

This would leverage Jira automation with regex.  Can you please provide a sample of a description with this information so I can run through a quick test in my environment?

Lloyd Patawaran January 10, 2023

yes, it would be a comment after the issue is created. basically:

issue created.

issue is commented (not a description) with string "Service Case: SN1x******". We'd then parse that string into a custom field.

Lloyd Patawaran January 10, 2023

Capture.PNG

Suggest an answer

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

Atlassian Community Events