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.



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.



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 Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

379 views 6 0
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