Filtering CustomFilter values on YouTrack - issue-tracking

I'm currently customizing YouTrack to adapt some processes of a company.
It's possible to filter, by Workflow or rest API, custom fields bundle values based on some criteria? (ex.: by value name, description or colorIndex).
The idea here is to basically chain project/issue fields in a way that the second field hide values that are not of the first field concern.
Thanks in advance.

Unfortunately this feature is not released yet, but can be tracked on the issue JT-12511.

Related

Best Way to Pass variable to Woocommerce Product?

Here is the setup.
Customer fills out form of information for product specifications. This creates an entry in the db with a unique detailsID.
They then are taken to a product page, with many variables. They select the variable product and checkout.
Now in the db they have an order as well as a separate table with the details of their request.
What is the best way to connect the product they bought with the detailsID?
I would like to basically pass the detailsID to the product page, then add this detailsID to the product. Or add the orderID back into the details table.
I keep going around whether to add this as meta data, or use a session, or just do post order logic to add the order ID back into the details table.
I really just need to link the two once the order completes but am not sure the best method to do this. I am pretty new to Woocommerce so don't know a lot of the hooks yet.
Thank you so much for your suggestions!
After a lot of research and experimenting here is the method I have decided on. This seems to add the information in a variety of places to make it easy to track orders and to insure that the customer is getting the customized product they want.
add custom data to woocommerce
I am using this method very close to how it is spelled out in this great article. This was really helpful for me being a woocommerce newb.

Writing the correct formula for SugarCRM

I am trying to automatically populate a field through a calculated field.
Just a quick background we distribute equipment with serials numbers. This equipment is sometimes returned. So some customers have multiple products each with different status of returned, shipped and installed.
I would like to transfer this serial number to a field on the contact through a calculated field only if the status is installed or shipped.
I have tried:
related($products,"serial"),",",(related($products,"status"))
and
related(contains(status,"installed)"products,"serial")
I need this for reporting reasons and would be greatly appreciated if you could help.
Thanks
You need a combination of ifElse and equal and related and or
As an example, the following Sugar Logic formula can be placed on a Contact record and will populate the field with the related account's name if the related account is of the type "Reseller." If the Account is of some other account_type then the field takes the value of "nope!"
ifElse(equal(related($accounts,"account_type"),"Reseller"),related($accounts,"name"),"nope!")
If you wanted to add another condition, or allow for another acceptable Account Type, build in an or
When you're writing lengthy Sugar Logic like this, I find it helpful to start writing it out with indentation using a text editor:
ifElse(
or(
equal(related($accounts,"account_type"),"Reseller"),
equal(related($accounts,"account_type"),"Investor"),
),
related($accounts,"name"),
"nope!"
)
In some versions of Sugar I've had to remove the extra spacing but it seems like in 7.2.2.0 at least the editor actually allows and preservers the formatting, which is a pleasant surprise.

Wordpress : data exchange betweeen two plugins

I want to develop a website where teachers create exams and students pay money in order to pass these exams, so it's an e-commerce website where products are quiz.
The exams will be managed with a quiz plugin : i'll use Watu.
I still have no idea what e-commerce plugin I'll use.
What I want is to make exams as products so students can add them to cart, but I dont't see how can I do it : the e-commerce plugin manages its own products !!! Is there an easy way to do it ?
This is my idea: alter the quiz module so when an exam is created the script insert a row in the e-commerce table(s), so when I go to the e-commerce plugin I'll find a new product! But I think this is not a clean way !!
You might consider setting up woo-commerce setting a link as a software product that will be delivered on checkout.
You could build a quiz answer table in sql, deliver a generic quiz (via a link sold in the store)
the quiz table could have a field for quiz_id and you could have their answers recorded as a text field.
so the link would be delivered digitally thru the store, your answers 1-100 a-d might look like this:
userid: xxxxx
autodate
test: 1
Answer:abadddaeababadddaeababadddaeababadddaeababadddaeababadddaeab
so one entry would contain all the answers on the test in question in one field.
once committed you could return a result based on a difference function from a pattern mask.
how many wrong answers in the simple query.
You then can store the answers and draw data based on what particular answers they got wrong.
they can also retake the same test at a later date and you can see each time how they did.
advantages of using a single text field means that you can use a single compare to pull the data and it's short to store.
with a membership plugin. Give roles afther payments. Diferent roles for diferent levels of exam. It´s easy than make conexion with database.

drupal sum up int fields in user profile

In my user profile I have some INT fields which represent quantity that the members will order on next delivery.
Using views I can create a nice looking table, but I also want to sum up these fields so that I can see the total amount of the product that I need to deliver that month.
I have been told that views will not accomplish this, so how would a drupal expert approach the issue?
The Views Calc module does just what you're looking for, but it doesn't yet have a recommended release for Drupal 7. Still, it might be worth trying the 7.x-1.x-dev release, just in case.
you can use views custom fields, add this field at last int he views. You can write php cpde over here and you get all the fields that you previously added in this view over here.
Drupal 7 has views_php in replacement to views_customfield in drupal6.
Hope this helps!!

Filter out nodes that refer to a specific kind of node

I have a node type (reviews) that uses CCK to refer to another kind of node (either books or videos). Is there a way for me to use Views so that I can show only Reviews of Books or only Reviews of Videos?
I've tried creating a Relationship in the View and using a parameter, but that doesn't seem to work.
Are you using a CCK node reference field? If so this documentation may help get you started: http://drupal.org/node/289738
I was able to get my client to agree to a change, so that each node gets a radio button to mark what kind of review it is. That means that users will have to select the book/video and then say which type it is, but they are college-educated and hopefully this won't be beyond them.
So then I can add the review type into my Filters, and show only book reviews or video reviews that way. I suspect that my initial question is impossible without a lot of hacking.
You can do this with Views 3, which may not be a solution for you at all. :/
You add a required relationship based on your node reference, and then add a filter on node type of book/movie. The filter's 'Use relationship' should be set to the required relationship you set up previously.

Resources