copy text into new field

Jacco Hendriksen February 9, 2024

I would like to copy a predefined text block into a new textblock.

I found a way of doing this with Confiforms but this is created with 2 input fields

https://wiki.vertuna.com/pages/viewpage.action?pageId=5341742

Can I create a text and name it?

2 answers

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 9, 2024

Hi @Jacco Hendriksen 

You can set a static text value... does not have to be a value from another field

somefield=Some text you want to put

Alex

Jacco Hendriksen February 9, 2024

Hi @Alex Medved _ConfiForms_ ,

Thank  you for this answer.

It is a bit more complicated. I would like to create a jira issue.

the desciption is this issue will depend on a choice i make.

Example:

If choice=1 description will be text block 1,
If choice=2 description will be text block 2.

creating the ticket works fine. this part I can not figure out

 

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 9, 2024

You can use Velocity templating and #if #else #end blocks if necessary

https://wiki.vertuna.com/display/CONFIFORMS/Configuring+ConfiForms+IFTTT+actions+and+rules#ConfiguringConfiFormsIFTTTactionsandrules-CreateJiraIssue

Also, set operations...

#set($desc = "")
       #if(${r1} == '1')
         #set($desc = "[entry.r1.label] - And some static text")
       #end
       #if(${r1} == '2')
         #set($desc = "[entry.r1.label]")
       #end
       #if(${r2} == '1')
         #set($desc = "$!{desc} [entry.r2.label]")
       #end
       #if(${r2} == '2')
         #set($desc = "[entry.r2.label] - $!{desc} ")
       #end

And then 

...
"description": "${desc}",

...

Alex

Like Jacco Hendriksen likes this
0 votes
Jacco Hendriksen February 11, 2024

Hi @Alex Medved _ConfiForms_ 

Thanks for this!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events