JIRA: How do you create custom logic around a custom field? - jira

All! I've been searching for an answer to this question for ages. Hoping somebody is able to help me out here.
Here is what I want to do:
Create a custom field. (Either a drop-down with a simple [yes/no] or checkbox).
Implement logic, based on the value of the custom field, which dictates the next column on the Kanban board the story must be put in.
Real World Example:
Here's an example:
I create a Drop-Down/Checkbox called: "Business Review Required".
I have three columns on my kanban board: "In Progress", "Business Review", "QA"
If the value of the "Business Review Required" custom field is 'yes' or 'enabled', then the Story MUST go into the "Business Review" column on my kanban board.
If the value of the "Business Review Required" custom field is 'no' or 'disabled', then the Story will be PREVENTED from going into the "Business Review" column, and must go to "QA".
I appreciate any assistance anybody can provide. Thank you very much!

Define transitions from the first status to each of the other three statuses
Add a condition to each transition to restrict when that transition is valid, e.g. "Business Review Required" custom field is 'yes'
Now only the appropriate transition button will appear.
The problem is that users don't know why the other choices are not shown

Related

Assign a field mapping on the "Create copy of work item" function

When a user creates a bug on the Agile template, we have fields such as 'System Info', 'Repro Steps' and 'Acceptance Criteria'. If the bug should have been a User Story (change), we can use the 'Create Copy of Work item' link, but only the title and priority fields are migrated to the new user story.
Is there a way to define a mapping for the 'Create Copy of Work item' workflow to migrate a specific bug field to a specific user story field, and vice-versa?
Sorry it's not able to achieve this. You may have to manually migrated some specific fields and values when create copy of work item'
Have raised a feature request here:
Customize a field mapping by using 'Create Copy of Work item' workflow
https://developercommunity.visualstudio.com/idea/1145139/customize-a-field-mapping-by-using-create-copy-of.html
Kindly vote up and monitor the process. Our Product team will review it.

Asana * Wufoo : Advanced integration

I am working on "Advanced integration" of a forms from Wufoo to Asana. SO far I have followed the Asana guide - https://asana.com/guide/help/api/wufoo
Guide is excellent and everything within the guide work as it says, but I need to go a bit further.
I notice that there is a bit of symbols that asana recognize from the forms( like quotes"" , equal ==, question mark ?), example of multiple choice menu:
"Chose person" == "asana tag" ? 1559453678421
"Chose person" == "asana person" ? blablabla#something.org
So in the following example I can have a multi choice menu that can assign task to a person and/or put a tag.
If I add a second person, that person become a follower, which is great.
My goal:
I want to make the form filler to add its email address, and that email address to be add as follower of the task.
What I know:
I have so far talked with Wufoo support and they told me that the text from the form goes in a straight text form to Asana, and asana actually recognize the form and create the specific tasks, for example:
<strong>This become BOLD text in asana</strong>
I keep on looking for the rest of the recognized symbols, but without success so far. If you have any kind of information regarding the "Advanced integration" I would love to know.
(I work at Asana.) Right now we only support routing through fields that are hidden (have the "hide" classname) with our Wufoo integration, but your use-case is very interesting. I'll take a look and see if we can enable this.
I have found a 2 workarounds to make this work for me.
Workaround 1
So far I have discover that asana recognize "hide" CSS Layout and the field labels : project,tag,assignee,follower . If these values are true then to make this editable I add a Wufoo form Rule that can show/hide fields. for example :
If "Email" contains "#" show "assignee"
And that rule does not change the CSS Layout Keyword "hide" so the form is send the same way with the only difference that the "hide" field is actually visible and that make it easily editable.
Workaround 2
By keeping the fields hide you can still edit them with "URL Modifications ". So basically have 2 forms linked together, so the first form fill up information that is send to the second form within the URL, so the fields remain hidden but being filled up by the URL. - I have not played with that much but Wufoo support briefly explain to me that its possible
URL Modification reference - http://help.wufoo.com/articles/en_US/SurveyMonkeyArticleType/URL-Modifications

Rails - DRY in Cucumber scenarios. What is a good balance?

I have the following scenarios:
Scenario: Create a game with valid information
Given I am logged in
When I visit the new game page
And I fill in "Game type" with "Basketball"
And I fill in "Zip code" with "94040"
And I fill in "Description" with "Friendly match"
And I click on the button "Create Game"
Then I should see "Awesome! Your game has been created."
Scenario: Create a game with missing information
Given I am logged in
When I visit the new game page
And I fill in "Zip code" with "94040"
And I fill in "Description" with "Friendly match"
And I click on the button "Create Game"
Then I should see "Game type can't be blank."
As you can see I am repeating code and as a developer point of view, I hate that I am repeating some sentences in both scenarios. However, I assume that scenarios have to be independent clear, so any stakeholder can take a look and say..Oh, I know what this scenario is describing.
I am trying to test if my form validation is working correctly for different kind of field values. So, I will have many similar scenarios that will be basically changing the "fill in" parts. So, another similar/related scenario would be the one that checks that zip code has to be numeric:
Scenario: Create a game with invalid zip code
Given I am logged in
When I visit the new game page
And I fill in "Game type" with "Basketball"
And I fill in "Zip code" with "ffff"
And I fill in "Description" with "Friendly match"
And I click on the button "Create Game"
Then I should see "Zip code has to contain 5 digits."
So, my question is: Is there any DRY, business people friendly way of doing this? I mean, a balance between code optimization and clear and understandable independent scenario definition?
I think scenario outline would suit you well.

Fogbugz: A way to pre-fill custom fields via HTTP post?

Greetings!
Situation:
We have a CRM system that generates unique customer IDs. Now we added a field "customer match code" to our Fogbugz cases, using the Custom Fields Plugin.
In the CRM we have a button "Add case to customer" that launches a VB script to open a URL, ie. Fogbugz.
Obviously, it would be nice to pre-fill the custom field "customer match code" with the ID. Normal fields are easy to pre-fill:
http://devserver/fogbugz/default.asp?command=new&pg=pgEditBug&sTitle=MyTitle
Since the field is a custom field, I found it not in the table "Bug", but in "Plugin_6_CustomBugData", where it is called "customerxmatchxcodeX62".
Neither accessing "customerxmatchxcodeX62", nor "customer match code", nor "Customer Match Code" worked.
Does anyone know of a way to access custom fields like this?
Note: I am aware of the XML API. I'm trying to avoid it in this case, because all I want to do is open a browser with Fogbugz "new case" page and fill this one field.
Thank you for any helpful responses!
Best regards,
Robin
http://fogbugz.stackexchange.com/ Try this site instead =)

Mantis: Show a List of Cases that are Assigned to Me

Is there anyway to get a list of cases that are assigned to me, in Mantis?
Try using the Extended Filter functioanllity and set it to "assigned to" --> your login.
There are 2 options for seeing the testcases assigned to you
Option 1
Log in
Click on "Main" link from the top navigation
Find for "Open and assigned to me" label. This label has the count of tickets assigned to you.
The count/number is linked.
Option 2
Log in
Click on "View issues" link from the top navigation
Use filter.
Enter your user name in "Assigned to" filter and select "Status" of the tickets to be looked for.

Resources