I am trying to write a code

Hi guys... I am need help in getting a resulted oriented field (Custom Field)... the result should be based on a combination of two other fields in Jira... for example I am creating a New Issue in Jira... and I have A, B and C fields in the page... C is custom field and it should value based on the selections made in A and B. Any inputs are greatly appreciated.

 

Thanks,

Niranjan Teegala

2 answers

0 votes

I'm afraid there's not a lot you can do on Cloud with this.

If you were on Server, I'd be asking if you want this on the front end (changes in field A or B in the create screen determine the options a user has for field C, but still let them enter something) or checking that they have not entered bad data, or if there's a fixed set of rules for the values of A and B that will always set C to something (you'd do that in a post-function mostly)

 

So it's like a 3 level Cascading Select custom field (basically like this add-on https://marketplace.atlassian.com/plugins/com.sourcesense.jira.plugin.cascadingselect/server/overview)?

What code do you have so far? Are you experiencing any issue with your code?

Do you plan on using this with JIRA Cloud?

Can you just not use a Cascading Select then just create a post-function to update your 3rd Custom field?

I have this exact need. what is the concept of the post-function? It sounds like this doesn't need coding.

Thanks

John

Requires minimal coding. Put a "Set Field Value to constant or Groovy expression" post function in the "Create" event. Then in the "Groovy" script part, get the "parent" and "child" value of the cascading select to determine what value you want for the 3rd field.

Sample for PF: https://answers.atlassian.com/questions/285260

Sample for Cascading Select: https://answers.atlassian.com/questions/13407075

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

591 views 2 15
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot