Accessing variables in Automator - automator

I am following an Automator tutorial and I can't figure out how to access variables like 'Current year' or 'Current user' in my workflow.
Suppose I am wanting to Add Photos to Album. How could I add them to a new album containing the current year in the name? (e.g. "Photos from ")

Under the top bar, activate left "Variables". Then drag the required variable to the workflow area.
This will insert an action "Query variable".
Enable "Show results", and do a single step to execute this action.
The result of this action can then be forwarded to any next action.

Related

Is there any custom option to lock work item for specific iteration?

I'm trying to lock/deny the option to open a new work item with specific iterations.
I tried to do it with a custom field with same value of iteration id and
<PROHIBITEDVALUES> rule.
Then I understood that its not possible because iteration-id field load only after I press the "save" button and its too late.
There any other ideas how to do it?
There is not any build-in option to hide older/specific iterations in the Work Item field.
However, you can set the security for "Edit work items in this node" to deny and they will not be able to save work items with the area or iteration selected.
Besides you could also hide the iteration node(s):
Open Project settings>Project configuration
Select the Iteration Tab
Select the iteration that you want to hide
Click on Security > Add a "Deny View" permissions for the users that
you want to hide the nodes from.
The user will not able to see the iteration in the sprint.
update:

How to set Custom Variable tag in Google Analytics w/ iOS

I am trying to add a custom variable to Google Analytics using the iOS Swift library:
let tracker = GAI.sharedInstance().defaultTracker
tracker.set("custom_field" value: "my_value")
Here's what I'm trying to create a filter on:
https://www.youtube.com/watch?v=4WbOtcwgQqE
How do I properly make that a custom variable so I can add a filter in Google Analytics?
They're no longer called custom variables, but custom dimensions (CD).
To configure the CD you've specified in the video:
Go to your GA account, go into Admin, under the property that you'd like to create this CD, click on "Custom Definitions" and click on "Custom Dimensions" Like
When you're in, click on "NEW CUSTOM DIMENSION" in red. Name it whatever you want, in this case "userRoles", you can name it "User Roles" as well. Make sure for "Scope" select "User" to learn more about scope: https://support.google.com/analytics/answer/2709828?hl=en&ref_topic=2709827#scope
Save and note the "Index" number for the newly created CD. This is how you reference it in your code, not by "userRole" or "User Role" most likely it will be something like "1" or "customDimension1", for the value you'd just set it to be whatever you want to use to identify the different user roles.

Save Column Option settings in TFS?

Is there any way to save your Column Option settings so that you can re-use them or apply them to other queries in TFS?
I've searched and it doesn't appear there is a way to do this, but maybe I am missing something.
Yes.. Follow below steps
Create a Query under queries pane. Make sure it works & Results are displayed
Now customise the view by clicking on the 'Column Options' & remove or add any column by DOUBLE CLICKING on it option followed by OK to save for current view
From the Result screen, notice 'SAVE QUERY' option. This should save your current view as it is to the Query
Voila.. Your view is saved as it is in the Query

How to add edit items to the predefined lists in TFS Work Items

I am trying to follow this article to do the same for adding a new State to a particular project's Bug work item. By default I can only see . I wanted to add a new state, "On Hold"
But I perhaps followed it wrong and ended up getting
The error says "Open Transition Active~On Hold to add at least one Reason." How do I open that transition and where do I add one reason. What is the reason it is talking about? I only want to add a new state.
Thanks for your time...
Double click the Active~On Hold Transition , select the Reasons tab and type in at least one reason.
After saving the .wit file, you must click Refresh from the Team Explorer menu in order to see changes.
In the work item editor, double click on the Transition between your Active and On hold states. Under 'Transition Detail' you should see 'From: Active' and 'To: On Hold'. Change 'From: Active' to blank so it should show 'From: '. Now save the editors, click 'refresh' from the Team Explorer menu and any new bugs you create will have 'On Hold' as an option for the state.

how to set a fields from a url sharepoint 2010

I have a list called Case,in the Case form i have the folowing hyper link
http://appserver/Lists/Hearings/Item/newifs.aspx?List=928323ea%2Deace%2D4220%2D845c%2D84871b4f00a8&=&Case_x0020_Number=100000
if you can see at the end of the url I have the item Case Number,what I want is to make the Hearing add new form to have the value of 10000 at the Case Number
so the user don't need to re-enter the value.
but when I click that link it open the new form thing but the field corresponding to that value is blank.
Note : from the share point it self the Case Number of the Hearing is lookup from the Case Number.
is there away to accomplish this?
You say
but when I click that link it open the new form thing but the field corresponding to that value is blank.
This happens when you click the hyperlink directly from the list view?
If you want your "Case number" field to populate dynamically you should create a calculated column, and use a formula to take the current "Case number" for the selected item. After that you can create a Hyperlink in InfoPath and navigate from the item's edit screen...
The formula for the calculated column should be something like this:
=("LocationToNavigate?queryStringParameter="&ListFiedName)

Resources