The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Fill custom field with text from comment

Deleted user
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Hi @[deleted]  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 @[deleted] 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?

Deleted user
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.

Deleted user
January 10, 2023

Capture.PNG

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events