Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to map a boolean Asset field to "Ja/Nein" values from Jira?

I have a "Ja", "Nein" select field in a JSM project.

I want to store that information in a boolean Asset field (True / false)

Question is: how can I do that? How can I convert the "Ja" value coming from Jira to a "True" value in the asset attribute?

Thanks in advance,

Bernd

2 answers

1 accepted

2 votes
Answer accepted
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2023

Hi @Bernd Anderer ,

I think the easiest solution is to create an 'if/then' condition in your automation rule on the "issue.customfield_10273"

If "issue.customfield_10273" = Yes

Then Use the "Create Variable" action to create a new Smart value and fill it with "True"

Else Use the "Create Variable" action to create a new Smart value and fill it with "False"

You can then use this smart value in your "Create Object" action to set the object boolean attribute.

I'm not sure what value you need to use to set the boolean attribute (false/true or 0/1)

Best regards,

Kris

I guess you are right - that is actually a simple solution.

Sometimes I don‘t see the forest for the trees :-)

Thanks for your help

Bernd

0 votes
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2023

Hi @Bernd Anderer ,

What is the process exactly ?

The "Ja", "Nein" select field is part of an issue ?

The issue triggers an automation rule that performs some action on an asset object ?

Best regards,

Kris

Hi @Kris Dewachter 

good question - looks like I skipped some details :-) 

I use an automation that creates an Asset Object with "Create Object".

In there I set the attributes with smart variables.

Let's say that "baustart_erfolgt" is a boolean attribute in the Asset Object and {{issue.customfield_10273}} is the Ja/Nein Value from the JSM form.

When I just assign {{issue.customfield_10273}} to "baustart_erfolgt" I am not getting "True / false" 

What I need is something like this:

if {{issue.customfield_10273}} Ja Then True

if {{issue.customfield_10273}} Nein Then False

Makes sense?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events