Forums

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

Howto copy text from description to custom field

Aivo Lelle November 23, 2011

Hi,

Howto copy certan text from description to custom field during issue creation. Is there and post function available doing this. I need to fetch e-mail address from issue description and set this to custom field.

Thanks!

BR,

Aivo

6 answers

1 accepted

1 vote
Answer accepted
Valentijn Scholten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011

I just edited this answer to include the link, in case of any confusion.

Valentijn Scholten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011

Haha, nice. I was just re-reading this and couldn't remeber putting in the example. thanks.

Kate
Contributor
June 18, 2012

Hi! Does it really work?

Has anyone tried to realize it?

0 votes
Lior Israeli
Contributor
March 22, 2012

Thanks Ramiro, I looked at the links but I'm not any wiser :(

can you please tell me if what I want can be done in Javascript and if yes what is the code?

btw, as I'm using Ondemand I cannot use/install plugins

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

Sorry, but I only know the code you should use in the script runner plugin.

You should create another question, because it is another topic.

0 votes
Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012
0 votes
Lior Israeli
Contributor
March 22, 2012

I am trying to copy the content of the Comments field into my own customfield - Comments1

Can you plesae tell me what is the javascript code for doing this?

0 votes
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011

Please try out one of the post functions of this plugin https://plugins.atlassian.com/plugin/details/29496

Aivo Lelle November 23, 2011

I have locked at it, but I didn't find suitable functionality there. Could you please be more specific which function are you erfering to, that could I use to find and copy part of description to my custom field.

Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011

The relevant post function is "Copy parsed text to a selected custom field"

This lets you compose the new content from existing system and custom fields. There is a help on the screen which placeholder you have to use for which field.

Aivo Lelle November 23, 2011
With this function you can compose different fields into one, but I need to do vice versa.
Let's say somewhere in description there is a line:
"This issue was sent by somebody@somewhere.com at 24.11.2011"
I need to get only email address to my custom field.
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011

sorry, you are right, parsing the text is not possible using this plugin. Should have read not just the subject of your question ;-)

So i think you need to go the Groovy way as ssuggested in the other answers

Aivo Lelle November 23, 2011

That's probably the way to do it. Thanks anyway!

0 votes
Valentijn Scholten
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 23, 2011
Aivo Lelle November 23, 2011

Not exactly. I need to find/match a substring in description and copy that to custom filed, not whole description.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events