Forums

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

Getting Text of ProForma Multiple Choice Values via Jira Automation

Andrew K_
August 26, 2022

Hello Community,

We are using ProForma to create forms. I am attempting to use Jira Automation to populate the description field of a Jira issue with a number of ProForma form field values. I can get the text values for everything other than multiple choice. 

In referencing the documentation here, https://docs.thinktilt.com/proforma/automation-for-jira-server, it says the text is stored as 

issue.properties."proforma.forms.i1".questions.choices

However, try as I might, I cannot figure out the proper structure to access the text values that were selected.

For example, I've tried this where 2 is the confirmed question ID: {{issue.properties."proforma.forms.i1".questions.choices.2.choices.get(0)}}

and 


{{issue.properties."proforma.forms.i1".state.answers.2.questions.choices.get(0)}}

and many others. 

Any tips?

1 answer

1 accepted

2 votes
Answer accepted
Avdhesh Chauhan
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 Champions.
February 27, 2013

Yes, just give an Ack transtion and add a counter in that transtions post function (a simple groovy can do this)

Now based on that u can have the conditions in your sub sequent transtions

Nic Brough -Adaptavist-
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 Champions.
March 4, 2013

Transition - the action of moving from one status to another

Post-function - some code you can run at the end of the transition

Counter - not a Jira specific term, Avdhesh simply means "create a numeric field and use a post function to add one to it's value every time you run the transition"

Oh, and "groovy" is mentioned - this is from a an addon which provides a framework for scripting some functions inside Jira

Have a look at https://confluence.atlassian.com/display/JIRA/Configuring+Workflow to begin with

Ondrej Zizka
March 4, 2013

I am new to this, so terms like transition, counter, post function are a bit unclear to me. Could you please point me to some docs or howto such? Thanks.

Ondrej Zizka
March 4, 2013

Great, thanks! I thought it would be as you wrote, just wasn't sure if it would force certain order of ACKs. But overall, if it's scriptable, then I guess I'd figure out something.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events