Copying partial text from another field
Hi,
I would like to add a post function that can copy the text from an existing field (Summary field), I only want to extract the characters from the beginning of the field up to the first space. Equally I want to do the same but from the end of the field, back to the last space. The amount of characters is not a fixed amount.
Is this possible?
Regards,
Andy
Comments (4)
-
repo owner -
reporter Excellent, thanks for the quick response Fidel. I want to extract the text at the front and copy it into one field. Then (presumably in another post function) I want to extract the text from the end and copy that into a different field.
Thanks,
Andy
-
repo owner Hi @apsimpkins,
For extracting the first word of summary you should use "Parse field for extracting data" with the following configuration:
- Leading delimiter: leave it empty
- Trailing delimiter: regular expression
\n
.
In my example I selected a text custom field called Short Text to store the first word of summary.
For extracting the last word of issue summary you should use the following configuration:
- Leading delimiter: regular expression
\s
- Trailing delimiter: regular expression
$
- Value format: regular expression
[^ ]+
BTW, I inform you that we have a new support site. Please, use it for your future questions and support requests.
-
repo owner - changed status to resolved
- Log in to comment
Hi @apsimpkins,
Yes, it's possible to do it. You can use "Parse field for extracting data" post-function to do it.
Do you want to copy the beginning and the end of issue summary to a same field, or to 2 different fields?