Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Showing issue status from jira in a confiform field

ebrahim rezaian December 26, 2021

Hello my friends

i had used "cwx publish issue (deprecated)" post function in my create issue transaction. in template of this postfunction i have a confiform form.

i want to  show status of linked issue (from jira) in a field of confiform (in confluence). in this way i can use "ConfiForms Field Definition Rules" to restrict edition of form in some issue statue (from jira).

can you help me in that way?

1 answer

2 votes
Alex Medved _ConfiForms_
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.
December 26, 2021

Hi

There is no need to over complicate things with additional macros (rules or additional ConfiForms fields) and so on...

if you have a Jira issue field (type) in ConfiForms then you can easily access any property/field of the linked Jira issue https://wiki.vertuna.com/display/CONFIFORMS/Accessing+Jira+issue+fields+directly+from+ConfiForms+using+Jira+issue+field

Alex

Ronny Zimmermann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

Hi Alex & everyone else,

I searched everywhere and didn't find anything. Is there a way to show two (or more) Jira issue field contents in one confiform "cell" (via the "Field name" definition )? Specifically, two of a different kind. And more specifically, the following svg and text?

Priority icon (svg):

JIRAISSUE.fields.priority.iconUrl.prepend(<img width="16px" src=").append("/>).renderAsHtml


Priority name (txt):

JIRAISSUE.fields.priority.name

I want them to be shown like this in one "cell" of the resulting confiform table:

Critical

Both are "children" of priority which looks like this:

{"name":"Critical","self":"https://jira.<...>/rest/api/2/priority/2","iconUrl":"https://jira.<...>/images/icons/priorities/critical.svg","id":"2"}

Thanks in advance for your response,

Ronny

Alex Medved _ConfiForms_
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.
April 15, 2024

Hi Ronny

Try the following

JIRAISSUE.fields.priority.name.prepend([entry.JIRAISSUE.fields.priority.iconUrl.prepend(<img width="16px" src=").append("/> )]).renderAsHtml)

Alex

Like Ronny Zimmermann likes this
Ronny Zimmermann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 15, 2024

Hi Alex,

thanks so much. That did the trick!

Best,

Ronny

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events