Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

field value separation in post function

dears please help how to write right the separations of the different fields values 

{{
issue.fields.project.key == "CBS360" and issue.fields.issuetype.name == "Incident" and
issue.fields["Market Place"] | find({"value":".com"}) ["Problem Type"] | find({"value":"Awarding"}) ["Product"] | find({"value":"Casino"})
}}

 

 

 

Screenshot_1.jpg

 

 

 

 

3 answers

Hi @valkyre57 ,

I would be glad to help you, but can you please elaborate on what are you trying to achieve here.

Regards,

Kevin.

I am trying to add watchers when three fields values are set.

when field "Market Place" value is ".com" and field "Problem Type"  value is "Awarding" and field "Product" value is "Casino" then add watcher 

{{ issue.fields.priority.name == "Blocker" and issue.fields["Project"].key == "TST" and issue.fields["Status"].name == "Open"}}

consider priority, project, status instead of your field values, using "and" between all the fields and for comparing "==" can be used as all other fields.

thanks for answering dear

i tried this but no adding watcher and no any errors please check

{{
issue.fields.project.key == "CBS360" and issue.fields.issuetype.name == "Incident" and issue.fields ["Problem Type"] | find({"value":"Awarding"}) and issue.fields ["Market Place"] | find({"value":".com"}) and issue.fields ["Product"] | find({"value":"Casino"})
}}

Like Kevin Johnson likes this

As I have mentioned above try to choose the custom field value and use "==" to check equals. I'm not so sure how find({""value:}) works.

0 votes

You have not said what you are trying to do with this query.  Please could you explain what you are trying to achieve?

Hey @Nic Brough _Adaptavist_ ,

I have been noticing your name in the community since I started my Atlassian career, your answers have helped a whole lot of people and I am one of them. Thank you for the great job that you're consistently doing for the community. From learning from the community here I am answering few questions now and then, is there any advice that you would like to share for me, to perform well in this community? I would love to hear few words from you.

Cheers,

Kevin.

@Nic Brough _Adaptavist_ 

i am trying add watcher when three field values are match . this code not working and please help to correct. no any errors

{{
issue.fields.project.key == "CBS360" and issue.fields.issuetype.name == "Incident" and issue.fields ["Problem Type"] | find({"value":"Awarding"}) and issue.fields ["Market Place"] | find({"value":".com"}) and issue.fields ["Product"] | find({"value":"Casino"})
}}

Sorry for hurry

I am trying to add watchers when three fields values would be as mentioned in code 

Please explain what are you trying to do and what fields are involved etc.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

248 views 2 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you