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

This widget could not be displayed.

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)

 

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

223 views 1 3
Join discussion

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