I have 2 fields, BA Department and URL Capacity Calculation.
How do I do it,
when I select the value "IT BA Corporate Function" from the BA Department field, the value of the URL Capacity Calculation field will automatically change to "https://jira.btpn.skyfencenet.com/wiki/spaces/MI/pages/3960931426/IT+BE+Corporate+Function+-+Resource+Capacity+Calculation"
I have tried the following method, but the result is not showing
I've tried removing the "https://" but it still doesn't work
Can anyone help me?
Where did you add that post function? Are you sure it's actually running when it needs to? Did you check for errors (on the summary of the post function)?
And when you say the result is not showing, what she's it mean?
Hi @David Fischer ,
Where did you add that post function?
>> from status A to B
Are you sure it's actually running when it needs to? Did you check for errors (on the summary of the post function)?
>> when I checked, there is no error information appeared
And when you say the result is not showing, what she's it mean?
>> The result should appear on the View Screen (yellow highlight, under the BA Department field)
is there something wrong with my query @David Fischer ?
or is there a character missing from my query? :(
as additional information, I used a custom field (single list/choice) for the URL Capacity field:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you "test" the Nunjucks template (using the "test Nunjucks template" button) against an issue to make sure the correct value is returned?
What is the type of the BA department field? And of the url capacity calculation field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you "test" the Nunjucks template (using the "test Nunjucks template" button) against an issue to make sure the correct value is returned?
>> here's the result:
What is the type of the BA department field? And of the url capacity calculation field?
>>
BA Department field =
URL Capacity Calculation field =
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you can see, testing the nunjucks template against an issue returns an empty string instead of the appropriate value. This means that the values inside the case statements are probably not exactly the value selected. It could be a case issue (upper vs lower case) or a trailing space in the single-select options. To check the exact value of the BA Department field, you can test this against the issue:
*{{issue.fields["BA Department"].value}}*
and copy the value between the asterisks (including any leading/trailing spaces)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry for the late reply,
and thank you very much for all your feedback!
Now it's working properly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.